share/hedgewars/Data/Shaders/water.vs
author raptor <buckyballreaction@gmail.com>
Tue, 13 Aug 2019 13:10:12 -0600
changeset 15312 5b2dec63f4cf
parent 12879 286e170f4f6b
permissions -rw-r--r--
Fix compiling on MacOS X by requiring c++11 standard. Building now requires MacOS X 10.8+ and CMake 3.9+

#ifdef GL_ES
precision mediump float;
#endif

attribute vec2 vertex;
attribute vec4 color;

varying vec4 vcolor;

uniform mat4 mvp;

void main()
{
    vec4 p = mvp * vec4(vertex, 0.0, 1.0);
    gl_Position = p;
    vcolor = color;
}