aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-24 14:12:33 +0200
committerSven Gothel <[email protected]>2011-04-24 14:12:33 +0200
commit72484bf9f6e5109982cfa825f167f10d29061ff0 (patch)
treea514d98e1cc96b3aae71759669863b0fc81dc164 /src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp
parent769e370f1c6948a02780466ebbc7f0c509eede26 (diff)
Graph: Fix AMD shader complain (version) ; No Attributes in fragment program ; Disable FPS draw at start
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp')
-rw-r--r--src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp b/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp
index 298dce7ef..fe74caffb 100644
--- a/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp
+++ b/src/jogl/classes/jogamp/graph/curve/opengl/shader/curverenderer01.vp
@@ -1,10 +1,13 @@
//Copyright 2010 JogAmp Community. All rights reserved.
+/**
+ * AMD complains: #version must occur before any other statement in the program
#ifdef GL_ES
#version 100
#else
#version 110
#endif
+ */
#include uniforms.glsl
#include attributes.glsl
@@ -12,6 +15,7 @@
void main(void)
{
- gl_Position = gcu_PMVMatrix[0] * gcu_PMVMatrix[1] * vec4(gca_Vertices, 1);
+ // gl_Position = gcu_PMVMatrix[0] * gcu_PMVMatrix[1] * vec4(gca_Vertices, 1);
+ gl_Position = gcu_PMVMatrix[0] * gcu_PMVMatrix[1] * gca_Vertices;
gcv_TexCoord = gca_TexCoords;
}