node-three-screenshot
node-three-screenshot copied to clipboard
How can I use the scene with camera?
Hi, thanks for this npm module! I'm wondering how can I use it with camera?
You can pass a second argument with options:
toPNG(scene, {
camera: new THREE.PerspectiveCamera(...),
// alternatively:
cameraPosition: new THREE.Vector3(1, 2, 3),
})
See the source for more information.