From b7350d996b5ef4942caf1e475bbd3a9d4c7bf5a9 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 8 Aug 2021 14:22:25 -0400 Subject: graphics: pbr: Normalize the interpolated normal vector in fragment shader. --- data/shaders/pbr-frag.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/shaders/pbr-frag.glsl b/data/shaders/pbr-frag.glsl index 5998474..a941a29 100644 --- a/data/shaders/pbr-frag.glsl +++ b/data/shaders/pbr-frag.glsl @@ -219,7 +219,7 @@ vec3 materialNormal() { return normalize(TBN * tangentNormal); } else { - return fragNormal; + return normalize(fragNormal); } } -- cgit v1.2.3