+1

an undeclared identifier on GlCore (refraction input).

Jan Vetulani 6 years ago updated 6 years ago 1

Working on the 2017 Linux editor, I get an error in Unity (not in shader forge) whenever I try to modify the RG from a normal map that goes into the refraction input. If I multiply it with anything, try to lerp it with a vector2, no matter. It looks fine in the editor, the shader works, I just can't build it otherwise I get that error. 


If I just input the RG into the refraction it's fine, but then obviously I can't control it.

Sorta found the culprit for the compile error.

The shader is for an ocean, I have a custom reflection, refraction, tesselation and it's a PBR shader.
When I disable the Write Meta Pass (Light Bounce Coloring), the error about the undeclared identifier goes away and I can build the project again!