max,fbx模型导入layabox不显示或显示白模,通常是没有设置场景灯光或者摄影机角度不对的原因 菜鸟注意
ts 1.4 添加一盏灯光
var directionLight =scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;
directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6);
directionLight.specularColor = new Laya.Vector3(1.0, 1.0, 0.9);
directionLight.diffuseColor = new Laya.Vector3(1, 1, 1);
directionLight.direction = new Laya.Vector3(0, -1.0, -1.0);
或者是摄影机角度不对,被模型覆盖 添加CameraMoveScript.ts
scene.currentCamera.addComponent(CameraMoveScript);旋转角度查看