summaryrefslogtreecommitdiff
path: root/src/shaders/default.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-18 03:43:19 +0800
committerchai <chaifix@163.com>2020-07-18 03:43:19 +0800
commit4deff343b5fd928ae9475eedcf9b6add34b31ae2 (patch)
treed9108f5fedc9f0dd57bf964763edc508983c80c5 /src/shaders/default.c
parent4984946caf0397a13da7605bc1ee406ea7354628 (diff)
-uniform collection
Diffstat (limited to 'src/shaders/default.c')
-rw-r--r--src/shaders/default.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shaders/default.c b/src/shaders/default.c
index efd9f25..46b4b6b 100644
--- a/src/shaders/default.c
+++ b/src/shaders/default.c
@@ -11,9 +11,8 @@
/*varyings*/
#define rough reg_num_00
-static void vert(UniformCollection* uniforms, Vertex* in, Vec4* clipcoord) {
+static void vert( Vertex* in, Vec4* clipcoord) {
static Vec4 p; p.xyz = in->position; p.w = 1;
- internal_mat4_mulvec4(uniforms->mvp, &p, clipcoord);
Vec4 normal = {
in->normal.x,
in->normal.y,
@@ -25,7 +24,7 @@ static void vert(UniformCollection* uniforms, Vertex* in, Vec4* clipcoord) {
*rough = 1 - internal_vec3_dot(&worldnormal, light);
}
-static bool frag(UniformCollection* uniforms, Color32* color) {
+static bool frag( Color32* color) {
internal_vec3_normalize(light, light);
float roughness = *rough;
//(*color).r = 1;