Skip to content
Snippets Groups Projects
Commit 7f4ac678 authored by Alexander Rose's avatar Alexander Rose
Browse files

camera tweaks

parent 7e7e30a8
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ class Camera implements Object3D {
}
focus(target: Vec3, radius: number) {
this.setState(this.getFocus(target, radius));
if (radius > 0) this.setState(this.getFocus(target, radius));
}
// lookAt(target: Vec3) {
......@@ -177,8 +177,8 @@ namespace Camera {
return {
mode: 'perspective',
position: Vec3.zero(),
direction: Vec3.create(0, 0, -1),
position: Vec3.create(0, 0, 100),
direction: Vec3.create(0, 0, 1),
up: Vec3.create(0, 1, 0),
target: Vec3.create(0, 0, 0),
......
......@@ -115,7 +115,7 @@ namespace Canvas3D {
const camera = new Camera({
near: 0.1,
far: 10000,
position: Vec3.create(0, 0, 10),
position: Vec3.create(0, 0, 100),
mode: p.cameraMode
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment