summaryrefslogtreecommitdiff
path: root/chart2/opengl/pickingVertexShader.glsl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-15 06:26:02 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-09-02 01:08:42 +0200
commit249c5e0f211bbdcbffda91a446dedd33c314ee64 (patch)
treecc42427e7969c7a1e6bdb0fb242f17a4766398bd /chart2/opengl/pickingVertexShader.glsl
parentfbddfdecccb9411ec40bb9d89f6bf8ed86cd423f (diff)
replace all attribute and varying in chart shaders
Next step to a pure OpenGL 3.2 core context. Change-Id: Ifcfccd9ffc8adcc3b7338e10cb25aeb8496909a3
Diffstat (limited to 'chart2/opengl/pickingVertexShader.glsl')
-rw-r--r--chart2/opengl/pickingVertexShader.glsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/opengl/pickingVertexShader.glsl b/chart2/opengl/pickingVertexShader.glsl
index c0096917cb97..9dc5a1463a23 100644
--- a/chart2/opengl/pickingVertexShader.glsl
+++ b/chart2/opengl/pickingVertexShader.glsl
@@ -9,14 +9,14 @@
#version 150 core
-attribute vec3 vPosition;
+in vec3 vPosition;
uniform mat4 MVP;
uniform mat4 M;
uniform vec4 vColor;
uniform float minCoordX;
uniform float maxCoordX;
-varying vec4 fragmentColor;
-varying vec3 positionWorldspace;
+out vec4 fragmentColor;
+out vec3 positionWorldspace;
void main()
{
positionWorldspace = (M * vec4(vPosition,1)).xyz;