ripple/rasterizeWaveMeshPosition.vert

23 lines
407 B
GLSL
Raw Normal View History

2017-11-27 05:12:13 +00:00
#version 410
#define SCENE_EXTENT 100.0f
uniform mat4 matrModel;
uniform mat4 matrVisu;
uniform mat4 matrProj;
/////////////////////////////////////////////////////////////////
2017-12-01 06:04:09 +00:00
in vec2 Vertex;
in vec2 TexCoord;
2017-11-27 05:12:13 +00:00
out Attribs {
vec3 pos;
} Out;
void main(void)
{
2017-11-28 17:35:49 +00:00
Out.pos = 0.5 * SCENE_EXTENT * vec3(Vertex.x, 0, Vertex.y);
gl_Position = matrProj * matrVisu * matrModel * vec4(Out.pos, 1.);
2017-11-27 05:12:13 +00:00
}