summaryrefslogtreecommitdiff
path: root/assets/shaders/pbr_textured.vert
diff options
context:
space:
mode:
Diffstat (limited to 'assets/shaders/pbr_textured.vert')
-rw-r--r--assets/shaders/pbr_textured.vert4
1 files changed, 1 insertions, 3 deletions
diff --git a/assets/shaders/pbr_textured.vert b/assets/shaders/pbr_textured.vert
index 40a6f29..d0f8fd5 100644
--- a/assets/shaders/pbr_textured.vert
+++ b/assets/shaders/pbr_textured.vert
@@ -19,9 +19,7 @@ layout(location = 2) out vec2 fragTexCoords;
void main() {
fragWorldPos = vec3(mvp.model * vec4(inPosition, 1.0));
- fragNormal = mat3(transpose(inverse(mvp.model))) * inNormal;
- // fragNormal = inNormal;
-
+ fragNormal = mat3(transpose(inverse(mvp.model))) * inNormal; // world-space normal
fragTexCoords = inTexCoords;
gl_Position = mvp.proj * mvp.view * mvp.model * vec4(inPosition, 1.0);