Skip to content

Commit

Permalink
fix text on old optifine
Browse files Browse the repository at this point in the history
  • Loading branch information
leo60228 committed Aug 31, 2023
1 parent 0e3cf5f commit 57041a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders/gbuffers_textured.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 57041a3

Please sign in to comment.