mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-02-12 00:18:41 +00:00
9 lines
250 B
HLSL
9 lines
250 B
HLSL
uniform sampler2D water;
|
|
varying vec3 position;
|
|
|
|
void main() {
|
|
vec4 info = texture2D(water, gl_Vertex.xy * 0.5 + 0.5);
|
|
position = gl_Vertex.xzy;
|
|
position.y += info.r;
|
|
gl_Position = gl_ModelViewProjectionMatrix * vec4(position, 1.0);
|
|
} |