+2

Environment lighting not working for Deferred render path in SF 1.38 in Unity 2017.3.1

Joeri 6 years ago updated by FDsagizi 6 years ago 2

To reproduce:


1) Make a simple deferred shader in Shader Forge

2) Make sure Unity is using the Deferred path under all the tiers in the Graphics settings

3) Make a material and drag it on an object


It won't use environment lighting.


Image 899

Cube on the left uses a forward shader, which does work and shows how it should look. Cube on the right uses the deferred shader.

+2

This should fix this issue while we wait for an update. Might also give a hint to the tool's dev.




float3 normDir;


return ShadeSH9(half4(normDir, 1.0));

have the same bug! Cannot use unity 17.3 :(