forked from enlightenment/efl
[evas/evas_3D] Uninitialized component of vector gl_FragColor in shadow_map shader
Summary: @fix During execution example evas-3d-obj, part of 3D objects showed with red ripple. The reason is not completely initialize component vector gl_FragColor Reviewers: cedric, Hermet Reviewed By: Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2292
This commit is contained in:
parent
499e546ee9
commit
364dcab234
|
@ -1175,6 +1175,9 @@ static const char const shadow_map_frag_glsl[] =
|
|||
"#endif //DIFFUSE\n"
|
||||
"#endif //ALPHA_TEST_ENABLED\n"
|
||||
"void main() {\n"
|
||||
"#ifndef NEED_TEX_COORD\n"
|
||||
" gl_FragColor = vec4(1);\n"
|
||||
"#endif\n"
|
||||
"#ifdef ALPHA_TEST_ENABLED\n"
|
||||
"#ifdef DIFFUSE_TEXTURE_BLEND\n"
|
||||
" gl_FragColor = (texture2D(uTextureDiffuse0, vTexCoord) *\n"
|
||||
|
|
|
@ -17,7 +17,9 @@ uniform float uTextureDiffuseWeight;
|
|||
#endif //ALPHA_TEST_ENABLED
|
||||
|
||||
void main() {
|
||||
|
||||
#ifndef NEED_TEX_COORD
|
||||
gl_FragColor = vec4(1);
|
||||
#endif
|
||||
#ifdef ALPHA_TEST_ENABLED
|
||||
|
||||
#ifdef DIFFUSE_TEXTURE_BLEND
|
||||
|
|
Loading…
Reference in New Issue