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/land.vert | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/shaders/land.vert (limited to 'src/shaders/land.vert') diff --git a/src/shaders/land.vert b/src/shaders/land.vert new file mode 100644 index 0000000..2004ab3 --- /dev/null +++ b/src/shaders/land.vert @@ -0,0 +1,14 @@ +precision highp float; +attribute vec3 land; +uniform float time; //used for noise +uniform float world_x; +uniform float world_y; +uniform mat4 MV; +uniform mat4 P; +varying vec2 worldxy; +varying mat4 pre; +void main() { + worldxy = vec2(world_x, world_y); + pre = P * MV; + gl_Position = P * MV * vec4(land.x - world_x, land.y - world_y, 0., 1.0); +} -- cgit v1.2.3-70-g09d2