提交 cc8c3e95 编写于 作者: X xiesi

抽屉的内容可以切换

没有title 不可以有x号
打开的同时  加载,不要打开之后再加载
Signed-off-by: Nxiesi <305492881@qq.com>
上级 66af0882
......@@ -26,13 +26,12 @@ export default {
const clock = new THREE.Clock();
let mixer;
const mw = document.documentElement.clientWidth * 0.7;
const mh = document.documentElement.clientHeight;
console.log(mw + "," + mh);
const init = () => {
camera = new THREE.PerspectiveCamera(
45,
container.clientWidth / container.clientHeight,
1,
2000
);
camera = new THREE.PerspectiveCamera(45, mw / mh, 1, 2000);
camera.position.set(100, 200, 300);
scene = new THREE.Scene();
......@@ -90,7 +89,7 @@ export default {
renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(container.clientWidth, container.clientHeight);
renderer.setSize(mw, mh);
renderer.shadowMap.enabled = true;
container.appendChild(renderer.domElement);
......
......@@ -46,6 +46,7 @@
@close="helfds"
@closed="cc"
destroy-on-close
show-close="true"
:with-header="false"
>
<LoadFBX ref="myfbx" :fbxfilepath="curefbxname"> </LoadFBX>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册