1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

components resize

This commit is contained in:
Kevin Levron 2021-03-05 08:35:00 +01:00
parent b4fc933bb5
commit 9f036082e8
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<Renderer ref="renderer" antialias> <Renderer ref="renderer" antialias resize>
<Camera ref="camera" :position="{ z: 150 }"></Camera> <Camera ref="camera" :position="{ z: 150 }"></Camera>
<Scene ref="scene"> <Scene ref="scene">
</Scene> </Scene>

View File

@ -1,5 +1,5 @@
<template> <template>
<Renderer ref="renderer" antialias mouse-move> <Renderer ref="renderer" antialias resize mouse-move>
<OrthographicCamera ref="camera" :position="{ z: 10 }" /> <OrthographicCamera ref="camera" :position="{ z: 10 }" />
<Scene ref="scene" /> <Scene ref="scene" />
</Renderer> </Renderer>

View File

@ -1,5 +1,5 @@
<template> <template>
<Renderer ref="renderer" :orbit-ctrl="{ enableDamping: true, dampingFactor: 0.05 }"> <Renderer ref="renderer" antialias resize :orbit-ctrl="{ enableDamping: true, dampingFactor: 0.05 }">
<Camera ref="camera" :position="cameraPosition"></Camera> <Camera ref="camera" :position="cameraPosition"></Camera>
<Scene> <Scene>
<slot></slot> <slot></slot>