TresPerspectiveCamera: aspect not work?
Randysheng opened this issue · comments
Randy_rs commented
<TresCanvas clear-color="#000000">
<TresPerspectiveCamera
:position="[0, 0, 5000]"
:fov="50"
:aspect="1"
:near="1"
:far="10000"
/>
<TresScene>
<TresPoints>
<TresBufferGeometry :position="[vertices, 3]" />
<TresPointsMaterial :color="0x888888" />
</TresPoints>
</TresScene>
</TresCanvas>
No matter how i change aspect
, for exampe 0.5 or 2, there is no change in view.
Maybe i miss something?
Alvaro Saburido commented
aspect
on the camera is only meant for setting the initial aspectRatio, internal code will automatically adapt it to the ratio between the container or window width/height