cocos2d-html5 icon indicating copy to clipboard operation
cocos2d-html5 copied to clipboard

Enable FIX_ARTIFACTS_BY_STRECHING_TEXEL by default

Open 1scaR1 opened this issue 7 years ago • 1 comments

It seems it was disabled accidentally in one of the latest commits.

1scaR1 avatar Mar 07 '17 12:03 1scaR1

FIX_ARTIFACTS_BY_STRECHING_TEXEL may cause LabelBMFont texture being cut off some pixels at the top and bottom, it's normally not recognizable in other textures, but in LabelBMFont it's more annoying. It's useful to remove black pixel gap when people use tiled map, so this value should be set by user when needed.

Previously it's enabled by default because it can also fix texture artifacts when hard edge is required for sprite frame in atlas. But that should be fixed by texture.setAliasTexParameters(), because it's due to the linear texture filter, AliasTexParameters is using nearest texture filter.

pandamicro avatar Mar 08 '17 03:03 pandamicro