diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-09-13 01:59:38 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-09-13 01:59:38 -0400 |
commit | 8e7b62c8583ff970b59a76bec911a44bc4ea1e60 (patch) | |
tree | 78fcef9d77a2e9a7a322bc20fbba98316aa8baa8 | |
parent | 99a70a8677f8d14749bdcd374f1631cd9cbbd3df (diff) | |
download | game_jam49-8e7b62c8583ff970b59a76bec911a44bc4ea1e60.tar.gz game_jam49-8e7b62c8583ff970b59a76bec911a44bc4ea1e60.zip |
Fix mistake in shader using global coords
-rw-r--r-- | Wave.gdshader | 1 |
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); |