Re: Help with shaders
Posted by
cznlzq on
Mar 13, 2012; 7:58pm
URL: https://forum.jogamp.org/Help-with-shaders-tp3737063p3823349.html
Yep, I think I have fixed it.
I google a little bit, someone says we have to change the CG code to GLSL code.
That means I have to change
samplerRECT--> sampler2DRect
textureRect--> texture2DRect
I'm new to the shaders, so I don't know what they are exactly talking about the CG and GLSL things.
Anyway, after I made the changes in all the shader files, it works.
And here is the result, is it correct?

Thanks