summaryrefslogtreecommitdiff
path: root/src/shaders/unlit.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-11 00:29:49 +0800
committerchai <chaifix@163.com>2020-07-11 00:29:49 +0800
commite849a07762a2feb3f124a08d50adeed52f085d5b (patch)
tree69207f80cf3372c6d5801d006966888f219e2a19 /src/shaders/unlit.c
parent44e6647ab365a9261c904be839e356c06a545907 (diff)
*加internal前缀
Diffstat (limited to 'src/shaders/unlit.c')
-rw-r--r--src/shaders/unlit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shaders/unlit.c b/src/shaders/unlit.c
index 9a807af..e887d07 100644
--- a/src/shaders/unlit.c
+++ b/src/shaders/unlit.c
@@ -10,20 +10,20 @@
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);
+ internal_mat4_mulvec4(uniforms->mvp, &p, clipcoord);
Vec4 normal = {
in->vertex->normal.x,
in->vertex->normal.y,
in->vertex->normal.z,
1
};
- Vec4 worldnormal; mat4_mulvec4(object2world, &normal, &worldnormal);
- vec3_normalize(light, light);
- *reg_num_00 = 1 - vec3_dot(&worldnormal, light);
+ Vec4 worldnormal; internal_mat4_mulvec4(object2world, &normal, &worldnormal);
+ internal_vec3_normalize(light, light);
+ *reg_num_00 = 1 - internal_vec3_dot(&worldnormal, light);
}
static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color32* color) {
- vec3_normalize(light, light);
+ internal_vec3_normalize(light, light);
return 1;
}