From 8e7b62c8583ff970b59a76bec911a44bc4ea1e60 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Tue, 13 Sep 2022 01:59:38 -0400 Subject: Fix mistake in shader using global coords --- Wave.gdshader | 1 - 1 file changed, 1 deletion(-) (limited to 'Wave.gdshader') diff --git a/Wave.gdshader b/Wave.gdshader index ff04afd..9e4aff3 100644 --- a/Wave.gdshader +++ b/Wave.gdshader @@ -57,7 +57,6 @@ vec3 gerstner_wave(vec4 wave, vec2 wave_dir, vec3 pos, inout vec3 tangent, inout void vertex() { vec3 global_vertex = (WORLD_MATRIX * vec4(VERTEX,1.0)).xyz; - VERTEX = global_vertex; TANGENT = vec3(1.0,0.0,0.0); BINORMAL = vec3(0.0,0.0,1.0); VERTEX += gerstner_wave(wave1,wave1_dir,global_vertex,TANGENT,BINORMAL); -- cgit v1.2.3