I used cgc 2.0 to compile glsl vertex shader,and return the down information:
multiTex.glslv(25) : error C7506: OpenGL does not define the global function dot
multiTex.glslv(25) : error C7506: OpenGL does not define the global function max
I dont know why the error occured.
help!!!
My code as down:
Thanks ,but cgc 2.0 supported leave context(background) compiler for GLSL.I used it compile many GLSL shader and all passed through before I reinstalled system.
Varying floats?Not problem with it.See the compiler error:
multiTex.glslv(25) : error C7506: OpenGL does not define the global function dot
multiTex.glslv(25) : error C7506: OpenGL does not define the global function max
cgc -profile glslv -entry main -oglsl -o asm.txt -l cInfo.txt multiTex.glslv
Why are you compiling a GLSL source to a GLSL profile?
I would have expected arbvp1, vp30, or vp40 as profile.
And you should really not use your texCoord array this way.
It would break if gl_MaxTexCoords > 8 because you hardcoded eight MultiTexCoord into the array. Just assign them manually, that’s the simplest way to get it right.
And when compiling this to an assembly profile you will see that you will run out of varyings with eight gl_TexCoords plus two vec3 varyings.
It not passed through also after I changed the number of gl_MultiTexCoord form 8 to 4 and return the same error that:the function “dot” and “max” not defined in GL