diff options
Diffstat (limited to 'shaders/water.vert')
-rw-r--r-- | shaders/water.vert | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shaders/water.vert b/shaders/water.vert new file mode 100644 index 0000000..1db6dc5 --- /dev/null +++ b/shaders/water.vert @@ -0,0 +1,16 @@ +#version 150 +#extension GL_ARB_explicit_attrib_location : enable +#extension GL_ARB_explicit_uniform_location : enable + +layout(location = 0) in vec3 in_position ; +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 ; + +void main() { + gl_Position = pjMatrix * mvMatrix * vec4( in_position, 1.0 ); +} |