From 0370d64b3bd7914be55358817e52bbc8a529a7d3 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Tue, 21 Jan 2025 16:02:51 -0600 Subject: work --- src/shaders/lake.vert | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/shaders/lake.vert (limited to 'src/shaders/lake.vert') diff --git a/src/shaders/lake.vert b/src/shaders/lake.vert new file mode 100644 index 0000000..2745cf9 --- /dev/null +++ b/src/shaders/lake.vert @@ -0,0 +1,13 @@ +precision highp float; +attribute vec3 lake; +attribute vec4 lamp1; //position, strength +attribute vec4 lamp2; +attribute vec4 lamp3; // max 3 lamps per shaded vertex +uniform float time; //used for noise +uniform float world_x; +uniform float world_y; +uniform mat4 MV; +uniform mat4 P; +void main() { + gl_Position = P * MV * vec4(lake.x - world_x, lake.y - world_y, 0., 1.0); +} -- cgit v1.2.3-70-g09d2