Login  Register

Re: Shader does not accept the Parameters.

Posted by Sven Gothel on Feb 13, 2014; 1:58pm
URL: https://forum.jogamp.org/Shader-does-not-accept-the-Parameters-tp4031551p4031568.html

On 02/13/2014 02:22 PM, jmaasing [via jogamp] wrote:
> I thought RasPi was GLES 2.0 only? If you give it GLES 3 shaders I guess they
> will fail to compile and maybe the compiler isn't nice enough to tell you they
> failed.

Note: If you look at our GearsES2 demo - or any other utilizing ShaderCode,
you will see that we add the GLSL version tag and other defines
at runtime depending on the used GLContext version.

Check call hierarchy on 'ShaderCode.addGLSLVersion(GL2ES2 gl)'.

Reason we do this is, b/c some GL implementation can by very picky
and refuse to run any shader code not matching the GLContext version.

~Sven



signature.asc (894 bytes) Download Attachment