mirror of https://github.com/axmolengine/axmol.git
fixes warning on Label Fragment shader
This commit is contained in:
parent
ed1fb1ad34
commit
ff106ed070
|
@ -12,7 +12,7 @@ uniform vec2 v_shadowOffset; \n\
|
||||||
void main() \n\
|
void main() \n\
|
||||||
{ \n\
|
{ \n\
|
||||||
float dist = texture2D(CC_Texture0, v_texCoord).a; \n\
|
float dist = texture2D(CC_Texture0, v_texCoord).a; \n\
|
||||||
//todo:support for assign offset,but the shadow is limited by renderable area\n\ \n\
|
//todo:support for assign offset,but the shadow is limited by renderable area \n\
|
||||||
vec2 offset = vec2(-0.0015,-0.0015); \n\
|
vec2 offset = vec2(-0.0015,-0.0015); \n\
|
||||||
float dist2 = texture2D(CC_Texture0, v_texCoord+offset).a; \n\
|
float dist2 = texture2D(CC_Texture0, v_texCoord+offset).a; \n\
|
||||||
//todo:Implementation 'fwidth' for glsl 1.0 \n\
|
//todo:Implementation 'fwidth' for glsl 1.0 \n\
|
||||||
|
|
Loading…
Reference in New Issue