summaryrefslogtreecommitdiff
path: root/src/shaders/default.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/default.c')
-rw-r--r--src/shaders/default.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shaders/default.c b/src/shaders/default.c
index e05d15d..efd9f25 100644
--- a/src/shaders/default.c
+++ b/src/shaders/default.c
@@ -11,13 +11,13 @@
/*varyings*/
#define rough reg_num_00
-static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoord) {
- static Vec4 p; p.xyz = in->vertex->position; p.w = 1;
+static void vert(UniformCollection* uniforms, Vertex* in, Vec4* clipcoord) {
+ static Vec4 p; p.xyz = in->position; p.w = 1;
internal_mat4_mulvec4(uniforms->mvp, &p, clipcoord);
Vec4 normal = {
- in->vertex->normal.x,
- in->vertex->normal.y,
- in->vertex->normal.z,
+ in->normal.x,
+ in->normal.y,
+ in->normal.z,
1
};
Vec4 worldnormal; internal_mat4_mulvec4(object2world, &normal, &worldnormal);