cOMS/shaders/liquids/water/water_vertex.hlsl
Dennis Eichhorn 39fbcf4300
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Waiting to run
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
linux bug fixes
2025-03-22 01:10:19 +00:00

9 lines
250 B
HLSL
Executable File

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);
}