aboutsummaryrefslogtreecommitdiff
path: root/shaders/water.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/water.vert')
-rw-r--r--shaders/water.vert23
1 files changed, 13 insertions, 10 deletions
diff --git a/shaders/water.vert b/shaders/water.vert
index 765c1df..9913150 100644
--- a/shaders/water.vert
+++ b/shaders/water.vert
@@ -7,17 +7,20 @@ layout(location = 2) in vec4 in_color ;
layout(location = 1) in vec3 in_normal ;
layout(location = 3) in vec2 in_texcoord ;
-layout(location = 4) uniform mat4 pjMatrix ;
-layout(location = 5) uniform mat4 mvMatrix ;
-layout(location = 7) uniform mat3 normalMatrix ;
+// layout(location = 4) uniform mat4 pjMatrix ;
+// layout(location = 5) uniform mat4 mvMatrix ;
+// layout(location = 7) uniform mat3 normalMatrix ;
+//
+// out vec3 lightPos ;
+// out vec3 normal ;
+// out vec4 position ;
+// out vec2 texpos ;
-out vec3 lightPos ;
-out vec3 normal ;
-out vec4 position ;
-out vec2 texpos ;
+out vec3 controlpoint ;
void main() {
- gl_Position = pjMatrix * (position = mvMatrix * vec4( in_position, 1.0 ));
- normal = normalMatrix * vec3(0,1,0) ;
- texpos = in_position.xz / 20.0;
+ // gl_Position = pjMatrix * (position = mvMatrix * vec4( in_position, 1.0 ));
+ // normal = normalMatrix * vec3(0,1,0) ;
+ // texpos = in_position.xz / 20.0;
+ controlpoint = in_position;
}