Skip to content

How to change camera perspective in renderer? #1329

Answered by RuneSP
RuneSP asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out, using toPresetView after camera initialization:

import { camera ... } from "@jscad/regl-renderer";

...

Object.assign(state.camera, cameras.camera.toPresetView("top", state));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RuneSP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant