summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-08-08 14:22:25 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-08-08 14:22:25 -0400
commitb7350d996b5ef4942caf1e475bbd3a9d4c7bf5a9 (patch)
tree5014ce2e678a66f5c6bd0b7d8695b485399d8f29 /data
parent16e1b624d6191ffc876f9dcd15d305606f04ddc0 (diff)
graphics: pbr: Normalize the interpolated normal vector in fragment shader.
Diffstat (limited to 'data')
-rw-r--r--data/shaders/pbr-frag.glsl2
1 files changed, 1 insertions, 1 deletions
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);
}
}