Skip to content

Commit

Permalink
Fixed graveyard normals
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocelot5836 committed Jan 18, 2025
1 parent 8f5f872 commit 822e175
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ void main() {

vertexDistance = fog_distance(ModelViewMat, Position, FogShape);

vec3 BoneNormal = data.Normal * Normal;
vertexColor = ModelColor * data.Transform[3] * minecraft_mix_light(Light0_Direction, Light1_Direction, Normal);
vec3 BoneNormal = normalize(data.Normal * Normal);
vertexColor = ModelColor * data.Transform[3] * minecraft_mix_light(Light0_Direction, Light1_Direction, BoneNormal);

ivec2 UV2 = ivec2(PackedLight & 15u, (PackedLight >> 4u) & 15u);
ivec2 UV1 = ivec2(PackedOverlay & 15u, (PackedOverlay >> 4u) & 15u);
Expand Down

0 comments on commit 822e175

Please sign in to comment.