mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 03:38:29 +00:00
[engine] 多纹理渲染 - sprite -> universal
This commit is contained in:
parent
03533b046c
commit
d2a705be6d
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user