Jump to content

  • Log In with Google      Sign In   
  • Create Account

glsl problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 themean   Members   -  Reputation: 940

Like
0Likes
Like

Posted 10 February 2012 - 03:46 AM

Hi
I have some problems with glsl
I use opengl 3.3
my shaders are
#version 330

in vec4 vVertex
in vec4 vColor;
out vec4 vVaryingColor;

void main()
{

vVaryingColor = vColor;
    gl_Position = vVertex;

}

and
#version 330
out vec4 vFragColor
in vec4 vVaryingColor
void main()
{

vFragColor = vVaryingColor;
}

with this i get this error:

Syntax error: 'in' parse error

Can you help me ??

Sponsor:

#2 Rene Z   Members   -  Reputation: 514

Like
2Likes
Like

Posted 10 February 2012 - 05:53 AM

You need to put a ; after the declarations of vVertex, vFragColor and vVaryingColor.

#3 themean   Members   -  Reputation: 940

Like
0Likes
Like

Posted 10 February 2012 - 06:18 AM

10x i solve the problem :)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS