scenerygraphics / scenery

Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan.
https://scenery.graphics
GNU Lesser General Public License v3.0
128 stars 31 forks source link

Volume shader light falloff #744

Open smlpt opened 2 months ago

smlpt commented 2 months ago

This PR adds light falloff to the volume sampling using the volume gradient at the first ray hit and then performs a dot product with the incoming ray direction.