+1
Fixed

Compile error w/tex2Dlod in vert program when targeting OpenGL

gnustoboz 11 років тому оновлено Freya Holmér (Developer) 10 років тому 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.

Відповідь

Відповідь
Fixed
This has been fixed for quite a while now