From d2a705be6db461033849958e6ec91255d94c98ac Mon Sep 17 00:00:00 2001 From: SmallMain Date: Sun, 26 Jun 2022 23:56:01 +0800 Subject: [PATCH] =?UTF-8?q?[engine]=20=E5=A4=9A=E7=BA=B9=E7=90=86=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=20-=20sprite=20->=20universal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/cocos2d/core/asset-manager/builtins.js | 2 +- engine/cocos2d/core/sp/multi-handler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }