SlightlyMad / VolumetricLights

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

Returning black screen in release builds. #50

Closed ninlilizi closed 3 years ago

ninlilizi commented 3 years ago

I've done some investigation. Shaders have been explicitly included in the build. The problem exists in Unity 5.5 as well as newer version. Tested multiple Unity versions upto 2018, starting at 5.5 The problem only occurs in standalone builds and not in the editor. The problem seems to be the RayMarch function in VolumetricLight.shader returns black with alpha set to 1 for the entire screen.

ninlilizi commented 3 years ago

Found the problem. Encase anyone else runs into this.

You apparently need to explicitly include a Unity Internal shader called 'Hidden/Internal-CombineDepthNormals' in your build

I'll save SlightlyMad the trouble and close this ticket myself.