Commit 8d544871 authored by limingzhe's avatar limingzhe

fix: debug

parent b4b096e6
......@@ -110,10 +110,10 @@ export function getSprNodeByUrl(url, cb) {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
getSpriteFrimeByUrl(url, async (sf) => {
const t = sf.getTexture();
t.setPremultiplyAlpha(true);
sf.setTexture(t);
spr.srcBlendFactor = cc.macro.BlendFactor.ONE;
// const t = sf.getTexture();
// t.setPremultiplyAlpha(true);
// sf.setTexture(t);
// spr.srcBlendFactor = cc.macro.BlendFactor.ONE;
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