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