Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualppodsiadly

Posted 11 February 2013 - 10:37 AM

I think the SimpleVertexShader error is referring to the "layout" code and the SimpleFragmentShader error is referring to the "out" code.

You're right, in/out variables are available since GLSL 1.40. In the previous version you have to use "attribute" keyword (for vertex shader's input), "varying" keyword (for variables passed from a vertex shader to a fragment shader) and "gl_FragData[]" for fragment shader's output.

 

"layout" is avialable since even newer version (I don'r remember which exactly). You have to specify indices from C++ using glBindAttribLocation.


#1ppodsiadly

Posted 11 February 2013 - 10:36 AM

I think the SimpleVertexShader error is referring to the "layout" code and the SimpleFragmentShader error is referring to the "out" code.

You're right, in/out variables are available since GLSL 1.40. In the previous version you have to use attribute keyword (for vertex shader's input), varying keyword (for variables passed from a vertex shader to a fragment shader) and gl_FragData[] for fragment shader's output.

 

"layout" is avialable since even newer version (I don'r remember which exactly). You have to specify indices from C++ using glBindAttribLocation.


PARTNERS