label : fix some error on android when the GLSL versions is 1.0

This commit is contained in:
Dhilan007 2013-12-16 14:36:11 +08:00
parent 32f23ebdba
commit 0cf17f5658
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ void main() \n\
{ \n\
float dist = texture2D(CC_Texture0, v_texCoord).a; \n\
//todo:Implementation 'fwidth' for glsl 1.0 \n\
float width = fwidth(dist); \n\
//float width = fwidth(dist); \n\
//assign width for constant will lead to a little bit fuzzy,it's temporary measure.\n\
//float width = 0.04; \n\
float width = 0.04; \n\
float alpha = smoothstep(0.5-width, 0.5+width, dist); \n\
//outline \n\
float mu = smoothstep(0.545-width, 0.545+width, dist); \n\