+1
Fixed

Compile error w/tex2Dlod in vert program when targeting OpenGL

gnustoboz 11 ár síðan updated by Freya Holmér (Developer) 10 ár síðan 8
Using version Beta 0.20.

For a shader in which a Texture2D node is used to generate a vertex offset, if OpenGL is being targeted, the shader fails to compile with this error:

Shader error in 'Shader Forge/Testing': Program 'vert', function "tex2Dlod" not supported in this profile (maybe you want #pragma glsl?) at line 60

Unchecking OpenGL as a target allows the shader to compile. Manually editing the resulting .shader file to add #pragma glsl to each pass also allows the shader to compile.

Example shader setup:
http://i.imgur.com/uDydrz4.jpg
This shader should fail to compile if OpenGL is checked.

Answer

Answer
Fixed
This has been fixed for quite a while now
If you plug a value of 0 into the MIP input of the normal map, will it work?
I know what the issue is then, I'll get this fixed for 0.21 :)
Fantastic, and happy to help. :)
Answer
Fixed
This has been fixed for quite a while now