+4
Under review

Shader error in 'Shader Forge/test': undeclared identifier 'surfaceReduction' at line 154 (on d3d11)

OliVR 8 years ago updated by Freya Holmér (Developer) 8 years ago 3

I have this error that is resulting in a non compiled shader with deffered lighting and DX11 -12.

Shader error in 'Shader Forge/Olix': undeclared identifier 'surfaceReduction' at line 154 (on d3d11)


Compiling Vertex program with SHADOWS_DEPTH LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF

Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING SHADER_API_DESKTOP Shader Forge 3.13


I was able to reproduce this error also in new project. Create simple deffered shader, switch camera do deffered and it will happen. Unity Version is 5.5.1f1


running into the same problem. i need to have a deffered shader since i want to use unity ssr.

enableing lightmap & light probes and reflection probe support stops my shader from compiling and gives me the exact same thing. unity 5.5.0f3 and sf 1.33

Under review

Ah, that's no good! I'll look into this asap

Which is Saturday, so it'll take a while I'm afraid!