diff options
author | chai <chaifix@163.com> | 2019-12-08 21:29:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-08 21:29:29 +0800 |
commit | 69d8af71d6882e801496fcd7ed971081c0b720d8 (patch) | |
tree | 452f7d037cf977e4a934d433bd2f12c03ed1ea10 /src/shaders | |
parent | 31be0df6255ef704bed28d2be56acbe1cea7caad (diff) |
*misc
Diffstat (limited to 'src/shaders')
-rw-r--r-- | src/shaders/unlit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shaders/unlit.c b/src/shaders/unlit.c index 7ff4497..fe692f0 100644 --- a/src/shaders/unlit.c +++ b/src/shaders/unlit.c @@ -17,11 +17,12 @@ static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color* color float strongness = vec3_dot(light, &in->normal); vec3_scale(vert_color, 1 - clamp(strongness, 0, 1), vert_color); *color = color32_tocolor(vert_color); - + //Color32 c = texture2d(maintex, &in->texcoord); + //*color = color32_tocolor(&c); return 1; } Program ssr_built_in_shader_unlit = { vert, frag, - VARYING_V4_00 + VARYING_V4_00 | VARYING_TEXCOORD }; |