glsl problem

Started by
1 comment, last by themean 12 years, 2 months ago
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 ??
Advertisement
You need to put a ; after the declarations of vVertex, vFragColor and vVaryingColor.
10x i solve the problem :)

This topic is closed to new replies.

Advertisement