Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

glsl problem

4: Adsense

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   

1339
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 ??

#2 Rene Z   Members   

605
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   

1339
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.