summaryrefslogtreecommitdiff
path: root/src/shaders/unlit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/unlit.c')
-rw-r--r--src/shaders/unlit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shaders/unlit.c b/src/shaders/unlit.c
index e5abdce..59510dd 100644
--- a/src/shaders/unlit.c
+++ b/src/shaders/unlit.c
@@ -10,14 +10,14 @@
static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoord) {
static Vec4 p; p.xyz = in->vertex->position; p.w = 1;
- mat4_applytovec4(uniforms->mvp, &p, clipcoord);
+ mat4_mulvec4(uniforms->mvp, &p, clipcoord);
Vec4 normal = {
in->vertex->normal.x,
in->vertex->normal.y,
in->vertex->normal.z,
1
};
- Vec4 worldnormal; mat4_applytovec4(object2world, &normal, &worldnormal);
+ Vec4 worldnormal; mat4_mulvec4(object2world, &normal, &worldnormal);
vec3_normalize(light, light);
*reg_num_00 = 1 - vec3_dot(&worldnormal, light);
}