Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mipper by weighting based on block type and luminance #66

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

xirreal
Copy link
Collaborator

@xirreal xirreal commented Jul 11, 2024

Also fixes config creation error

@m3t4f1v3
Copy link

on src/main/java/me/cortex/voxy/common/world/other/Mipper.java:108

if(blockState.isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

I had to replace this with

if(mapper.getBlockStateFromBlockId(blockId).isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

in order to compile

I may have forgotten to commit half the file
@xirreal
Copy link
Collaborator Author

xirreal commented Jul 16, 2024

on src/main/java/me/cortex/voxy/common/world/other/Mipper.java:108

if(blockState.isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

I had to replace this with

if(mapper.getBlockStateFromBlockId(blockId).isOf(Blocks.SNOW) && i >= 4 ) { // If snow and a top block, remove lighting from block below

in order to compile

Oops! Fixed.

@Sorro123
Copy link

Water is invisible

@xirreal
Copy link
Collaborator Author

xirreal commented Jul 16, 2024

Unrelated to this PR

@m3t4f1v3
Copy link

😭 you might've forgotten a semicolon on src/main/java/me/cortex/voxy/common/world/other/Mipper.java:97

I should probably make commits from an ide instead of the gh web ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants