Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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: 961

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: 522

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: 961

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