From b2c9782ab2f4abec8f8548e667a8f2ad6e36bd4b Mon Sep 17 00:00:00 2001 From: Omniscient Date: Tue, 18 Jun 2024 11:03:52 +1000 Subject: wip --- assets/shaders/pbr_textured.vert | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'assets/shaders/pbr_textured.vert') 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); -- cgit v1.2.3-70-g09d2