mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
temp hack (#3608)
This commit is contained in:
@@ -275,6 +275,13 @@ export default class ModelComponent extends RenderableComponent {
|
||||
|
||||
_getBuiltinMaterial() {
|
||||
// classic ugly pink indicating missing material
|
||||
return cc.BuiltinResMgr['default-material'];
|
||||
//return cc.BuiltinResMgr['default-material'];
|
||||
if (ModelComponent._m === null) {
|
||||
ModelComponent._m = new cc.Material();
|
||||
ModelComponent._m.effectName = 'builtin-effect-phong';
|
||||
}
|
||||
return ModelComponent._m;
|
||||
}
|
||||
|
||||
static _m = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user