+1
Fixed
Compile error w/tex2Dlod in vert program when targeting OpenGL
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.
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
0
Answer
Fixed
Freya Holmér (Developer) 10 years ago
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 :)
Customer support service by UserEcho