How to implement view button functionalities?
Whitew2015 opened this issue · 1 comments
Whitew2015 commented
tengge1 commented
add OrthographicCamera
and PerspectiveCamera
. When show perspective view, use PerspectiveCamera
to render the scene; when orthographic view, use OrthographicCamera
to render the scene.
Use OrthographicCamera
when we show front view, side view and top view. The diffierence is the camera position and rotation.
I implemented this function in this file: https://github.com/tengge1/ShadowEditor/blob/master/web/src/event/ViewEvent.js
. You can reference to it.