- Home /
Using tex2Dbias in shader results in compiler error
I want to use tex2Dbias function described on Cg manual however I get a compiler error
Shader error in 'Custom/Cells': Program 'frag', function "ddx" not supported in this profile (maybe you want #pragma glsl?) at line 210
Shader error in 'Custom/Cells': Program 'frag', function "ddy" not supported in this profile (maybe you want #pragma glsl?) at line 210
Shader error in 'Custom/Cells': Program 'frag', function "tex2D" not supported in this profile (maybe you want #pragma glsl?) at line 210
I have
#pragma target 3.0
set, so Cg profile is matching one required by manual, how can I fix that?
Your answer
Follow this Question
Related Questions
Help with shader with uniform opacity when overlapped, globally mapped texture. 0 Answers
Shader / Texturing Model 1 Answer
bymp map shaders 0 Answers
How to apply specific texture for specific triangle in mesh based on height in shader? 0 Answers
How to force the compilation of a shader in Unity? 5 Answers