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

Fix loss of energy when passing through translucent white blocks when fancier translucency is enabled #1670

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

JustinTimeCuber
Copy link
Contributor

The problem is that Fancier translucency isn't using the material's texture brightness to determine how much light should be reflected diffusely vs. absorbed. With this change, a translucent white block with e.g. 49% opacity will now reflect 51% of light and absorb 0%, instead of reflecting 30% and then absorbing 21% (30% of 70%).

This fixes the white furnace test - before:
image

After:
image

@leMaik leMaik merged commit 7a26909 into chunky-dev:master Feb 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants