OpenGL port of https://github.com/jeschke/water-wave-packets, presented at SIGGRAPH 2017.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
521 B

#version 410
#define SCENE_EXTENT 100.0f
uniform mat4 matrModel;
uniform mat4 matrVisu;
uniform mat4 matrProj;
/////////////////////////////////////////////////////////////////
layout(location=0) in vec2 Vertex;
layout(location=1) in vec2 TexCoord;
out Attribs {
vec3 pos;
} Out;
void main(void)
{
Out.pos = 0.5 * SCENE_EXTENT * vec3(Vertex.x, 0, Vertex.y);
/* Direct3D and OpenGL don't render with the same screen coordinates */
gl_Position = matrProj * matrVisu * matrModel * vec4(Out.pos, 1.);
}