|
|
@ -59,6 +59,7 @@ export class MaterialEditor
|
|
|
|
initViewer()
|
|
|
|
initViewer()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.m_Viewer = new Viewer(this.m_Canvas);
|
|
|
|
this.m_Viewer = new Viewer(this.m_Canvas);
|
|
|
|
|
|
|
|
this.m_Viewer.m_PreViewer.Cursor.CursorObject.visible = false;
|
|
|
|
this.m_Viewer.m_CameraCtrl.SwitchCamera();
|
|
|
|
this.m_Viewer.m_CameraCtrl.SwitchCamera();
|
|
|
|
this.m_Viewer.m_bUsePass = false;
|
|
|
|
this.m_Viewer.m_bUsePass = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -77,6 +78,7 @@ export class MaterialEditor
|
|
|
|
|
|
|
|
|
|
|
|
let geo = this.m_Geometrys.get(this.m_CurGeometryName);
|
|
|
|
let geo = this.m_Geometrys.get(this.m_CurGeometryName);
|
|
|
|
this.m_ShowMesh = new THREE.Mesh(geo);
|
|
|
|
this.m_ShowMesh = new THREE.Mesh(geo);
|
|
|
|
|
|
|
|
this.m_ShowMesh.scale.set(1000, 1000, 1000);
|
|
|
|
|
|
|
|
|
|
|
|
this.m_ShowObject.add(this.m_ShowMesh);
|
|
|
|
this.m_ShowObject.add(this.m_ShowMesh);
|
|
|
|
scene.add(this.m_ShowObject);
|
|
|
|
scene.add(this.m_ShowObject);
|
|
|
@ -101,8 +103,8 @@ export class MaterialEditor
|
|
|
|
|
|
|
|
|
|
|
|
//Pontual light 点光源
|
|
|
|
//Pontual light 点光源
|
|
|
|
var point = new THREE.PointLight(0x999999);
|
|
|
|
var point = new THREE.PointLight(0x999999);
|
|
|
|
point.intensity = 2.5;
|
|
|
|
point.intensity = 2.5 * 1000;
|
|
|
|
point.position.set(-0.5, 1, 1.5);
|
|
|
|
point.position.set(-0.5, 1, 1.5).multiplyScalar(1000);
|
|
|
|
scene.add(point);
|
|
|
|
scene.add(point);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|