summaryrefslogtreecommitdiff
path: root/src/shaders/unlit.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-12-15 16:45:17 +0800
committerchai <chaifix@163.com>2019-12-15 16:45:17 +0800
commit7da5ed50d803e94518fcb6acdd8083710e0eb77e (patch)
tree9f3655b5f8049cca4251dd5425930edb52f2dc3d /src/shaders/unlit.c
parentbcb7c0a426e66dc57007ae9a0e879358c7860fbb (diff)
*misc
Diffstat (limited to 'src/shaders/unlit.c')
-rw-r--r--src/shaders/unlit.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/shaders/unlit.c b/src/shaders/unlit.c
index 59510dd..9a807af 100644
--- a/src/shaders/unlit.c
+++ b/src/shaders/unlit.c
@@ -24,19 +24,10 @@ static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoor
static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color32* color) {
vec3_normalize(light, light);
- vec3_normalize(&in->normal, &in->normal);
- //float rough = 1- vec3_dot(&in->normal, light);
- float roughness = *reg_num_00;
- Color32 c = tex2d(maintex, in->texcoord);
- //vec3_scale(&c, roughness, &c);
- //color32_saturate(&c);
- *color = c;
return 1;
}
Program ssr_built_in_shader_unlit = {
vert, frag,
- VARYING_TEXCOORD |
- VARYING_NORMAL |
VARYING_NUM_00
};