summaryrefslogtreecommitdiff
path: root/src/shaders/pbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/pbr.c')
-rw-r--r--src/shaders/pbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shaders/pbr.c b/src/shaders/pbr.c
index bd78c8b..6db3d68 100644
--- a/src/shaders/pbr.c
+++ b/src/shaders/pbr.c
@@ -22,7 +22,7 @@
static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoord) {
static Vec4 p; p.xyz = in->vertex->position; p.w = 1;
- mat4_mulvec4(uniforms->mvp, &p, clipcoord);
+ object2clip(&p, clipcoord);
Vec4 normal = {
in->vertex->normal.x,
in->vertex->normal.y,