summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-13 01:59:38 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-13 01:59:38 -0400
commit8e7b62c8583ff970b59a76bec911a44bc4ea1e60 (patch)
tree78fcef9d77a2e9a7a322bc20fbba98316aa8baa8
parent99a70a8677f8d14749bdcd374f1631cd9cbbd3df (diff)
downloadgame_jam49-8e7b62c8583ff970b59a76bec911a44bc4ea1e60.tar.gz
game_jam49-8e7b62c8583ff970b59a76bec911a44bc4ea1e60.zip
Fix mistake in shader using global coords
-rw-r--r--Wave.gdshader1
1 files changed, 0 insertions, 1 deletions
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);