mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
components resize
This commit is contained in:
parent
b4fc933bb5
commit
9f036082e8
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user