From 57041a3a96609e3341f963928c2a40bb301f132b Mon Sep 17 00:00:00 2001 From: leo60228 Date: Thu, 31 Aug 2023 11:46:10 -0400 Subject: [PATCH] fix text on old optifine --- shaders/gbuffers_textured.vsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/gbuffers_textured.vsh b/shaders/gbuffers_textured.vsh index 5517926..9aea019 100644 --- a/shaders/gbuffers_textured.vsh +++ b/shaders/gbuffers_textured.vsh @@ -35,7 +35,7 @@ void main() gl_FogFragCoord = length(pos); //Calculate view space normal. - vec3 normal = gl_NormalMatrix * gl_Normal; + vec3 normal = normalize(gl_NormalMatrix * gl_Normal); //Use flat for flat "blocks" or world space normal for solid blocks. normal = (mc_Entity==1.) ? vec3(0,1,0) : (gbufferModelViewInverse * vec4(normal,0)).xyz;