diff --git a/engine/cocos2d/core/asset-manager/builtins.js b/engine/cocos2d/core/asset-manager/builtins.js index 668ca0ff..4456eb12 100644 --- a/engine/cocos2d/core/asset-manager/builtins.js +++ b/engine/cocos2d/core/asset-manager/builtins.js @@ -90,7 +90,7 @@ var builtins = { cc.sp.MAX_MULTITEXTURE_NUM = 8; // cc.renderer.device.caps.maxTextureUnits - this._loadMultiEffect('multi-2d-sprite', (effect) => { + this._loadMultiEffect('multi-2d-universal', (effect) => { cc.sp.multi2dSpriteEffectAsset = effect; effect.addRef(); cc.sp.inited = true; diff --git a/engine/cocos2d/core/sp/multi-handler.ts b/engine/cocos2d/core/sp/multi-handler.ts index 664876e5..74a7b289 100644 --- a/engine/cocos2d/core/sp/multi-handler.ts +++ b/engine/cocos2d/core/sp/multi-handler.ts @@ -26,7 +26,7 @@ export class MultiHandler { this.material = material; } else { this.material = (cc.Material as any).create(cc.sp.multi2dSpriteEffectAsset); - this.material.name = "multi-2d-sprite"; + this.material.name = "multi-2d-universal"; this.material.define('USE_TEXTURE', true); this.material.define('USE_MULTI_TEXTURE', true); }