chunky-dev / chunky

A path tracer to create realistic images of your Minecraft worlds.
https://chunky-dev.github.io/docs
GNU General Public License v3.0
644 stars 76 forks source link

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

Closed JustinTimeCuber closed 7 months ago

JustinTimeCuber commented 11 months ago

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