diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-08-08 14:22:25 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-08-08 14:22:25 -0400 |
commit | b7350d996b5ef4942caf1e475bbd3a9d4c7bf5a9 (patch) | |
tree | 5014ce2e678a66f5c6bd0b7d8695b485399d8f29 /data/shaders/pbr-frag.glsl | |
parent | 16e1b624d6191ffc876f9dcd15d305606f04ddc0 (diff) |
graphics: pbr: Normalize the interpolated normal vector in fragment shader.
Diffstat (limited to 'data/shaders/pbr-frag.glsl')
-rw-r--r-- | data/shaders/pbr-frag.glsl | 2 |
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); } } |