forked from enlightenment/efl
Evas 3D: Fix shadow map shader
Summary:
Silly mistake after this b9b5ced501
commit.
Seems uninitialized components of vector gl_FragColor
Reviewers: cedric, Hermet, jpeg
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2258
This commit is contained in:
parent
431e73eed5
commit
4af7a947a6
|
@ -1188,7 +1188,7 @@ static const char const shadow_map_frag_glsl[] =
|
|||
"#endif //DIFFUSE_TEXTURE\n"
|
||||
"#endif //DIFFUSE_TEXTURE_BLEND\n"
|
||||
"#endif //ALPHA_TEST_ENABLED\n"
|
||||
" gl_FragColor.r = gl_FragCoord.z;\n"
|
||||
" gl_FragColor = vec4(gl_FragCoord.z);\n"
|
||||
"}\n";
|
||||
|
||||
static const char const color_pick_vert_glsl[] =
|
||||
|
|
|
@ -36,5 +36,5 @@ void main() {
|
|||
|
||||
#endif //ALPHA_TEST_ENABLED
|
||||
|
||||
gl_FragColor.r = gl_FragCoord.z;
|
||||
gl_FragColor = vec4(gl_FragCoord.z);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue