From 08cb8d6a585dd552b69a488d9db1be123f01467a Mon Sep 17 00:00:00 2001 From: tech kaczynski Date: Tue, 22 Sep 2026 22:38:57 +1000 Subject: initial commit. --- res/sdr/ocean.vs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 res/sdr/ocean.vs (limited to 'res/sdr/ocean.vs') diff --git a/res/sdr/ocean.vs b/res/sdr/ocean.vs new file mode 100644 index 0000000..517d0aa --- /dev/null +++ b/res/sdr/ocean.vs @@ -0,0 +1,16 @@ +#version 330 + +in vec3 vertexPosition; + +uniform mat4 mvp; +uniform mat4 matModel; + +out vec3 world_position; + +void +main() { + vec4 world = matModel * vec4(vertexPosition, 1.0); + world_position = world.xyz; + + gl_Position = mvp * vec4(vertexPosition, 1.0); +} -- cgit v1.2.3