SlightlyMad / VolumetricLights

Volumetric Lights for Unity
BSD 3-Clause "New" or "Revised" License
2.05k stars 304 forks source link

Unity3D 5.5.1f1 Lighting fog settings overrule depth #19

Open jdmulti opened 7 years ago

jdmulti commented 7 years ago

When applying the current Unity Stack image effects and enabling fog settings within the lighting settings, the volumetric spotlight beam will appear under the fog as in rendered behind the fog. When disabling fog in lighting panel, the volumetric light is rendered correctly.

Screenshot: http://imgur.com/NLetlTd

SlightlyMad commented 7 years ago

I don't have time to take a look but you can try to remove [ImageEffectOpaque] from VolumetricLightRenderer. That will force it to render after transparent objects. Make sure VolumetricLightRenderer component is below other image effect components and it should be rendered last.