[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:
Oleksandr Shcherbina 2015-04-10 14:26:55 +09:00 committed by ChunEon Park
parent 499e546ee9
commit 364dcab234
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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