summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders/vert
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-07 17:53:02 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-07 17:53:02 +0100
commit91afb55a58c4b27d0c746e64305dd1d9ad816d94 (patch)
treecdf8c74b4b0aff8f0df7208b1c48f4b99f951db4 /cwd/assets/altcraft/shaders/vert
parentFixed GalOgl OglState dangling resource (diff)
downloadAltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar
AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.gz
AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.bz2
AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.lz
AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.xz
AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.tar.zst
AltCraft-91afb55a58c4b27d0c746e64305dd1d9ad816d94.zip
Diffstat (limited to '')
-rw-r--r--cwd/assets/altcraft/shaders/vert/face.vs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cwd/assets/altcraft/shaders/vert/face.vs b/cwd/assets/altcraft/shaders/vert/face.vs
index e50e503..a85b2c6 100644
--- a/cwd/assets/altcraft/shaders/vert/face.vs
+++ b/cwd/assets/altcraft/shaders/vert/face.vs
@@ -33,7 +33,7 @@ void main() {
faceTextureUv = vec3(uv[gl_VertexID], uvLayer);
faceTextureUv.y -= (uv[2].y - uv[0].y) * trunc(mod(globalTime * 4.0f, animation));
- faceNormal = normal;
+ faceNormal = (view * vec4(normal, 0.0f)).xyz;
faceAddColor = color;
faceLight = light;
}