Volumetric lightning -- Vol.96
Bloom? No. Volumetric lightning doesn't need a technique that's heavy on both memory bandwidth and ALU.
#gameDev #indieDev #soloDev #realTimeVFX #techArt #u3d #shaders #vrchat
Volumetric lightning -- Vol.96 Bloom? No. Volumetric lightning doesn't need a technique that's heavy on both memory bandwidth and ALU. #gameDev #indieDev #soloDev #realTimeVFX #techArt #u3d #shaders #vrchat
0 views
Published on 02/12/2026 00:15
0:43
Volumetric lightning -- Vol.96
Bloom? No. Volumetric lightning doesn't need a technique that's heavy on both memory bandwidth and ALU.
#gameDev #indieDev #soloDev #realTimeVFX #techArt #u3d #shaders #vrchat
2 comments
?
Ok I NEEEED to know how you achieved this!
Pretty straightforward! In the ray-marching loop, I accumulate brightness based on the inverse square of the distance to the lightning center. I also do an early exit if the step depth is greater than the camera depth texture. This gives a soft glow while maintaining proper occlusion.
The glow for the volumetric lightning is already handled during the ray-marching pass. Its calculation scope is strictly bounded to the screen-space pixels covered by the cylinder mesh proxy. This also ensures accurate depth and occlusion calculations.