Commit 8d544871 authored by limingzhe's avatar limingzhe

fix: debug

parent b4b096e6
...@@ -110,10 +110,10 @@ export function getSprNodeByUrl(url, cb) { ...@@ -110,10 +110,10 @@ export function getSprNodeByUrl(url, cb) {
const node = new cc.Node(); const node = new cc.Node();
const spr = node.addComponent(cc.Sprite); const spr = node.addComponent(cc.Sprite);
getSpriteFrimeByUrl(url, async (sf) => { getSpriteFrimeByUrl(url, async (sf) => {
const t = sf.getTexture(); // const t = sf.getTexture();
t.setPremultiplyAlpha(true); // t.setPremultiplyAlpha(true);
sf.setTexture(t); // sf.setTexture(t);
spr.srcBlendFactor = cc.macro.BlendFactor.ONE; // spr.srcBlendFactor = cc.macro.BlendFactor.ONE;
spr.spriteFrame = sf; spr.spriteFrame = sf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment