[orx-camera] Add orthogonal projection
This commit is contained in:
@@ -18,8 +18,9 @@ class Orbital : Extension {
|
||||
var fov = 90.0
|
||||
var userInteraction = true
|
||||
var keySpeed = 1.0
|
||||
var projectionType = ProjectionType.PERSPECTIVE
|
||||
|
||||
val camera by lazy { OrbitalCamera(eye, lookAt, fov, near, far) }
|
||||
val camera by lazy { println("creating camera $projectionType"); OrbitalCamera(eye, lookAt, fov, near, far, projectionType) }
|
||||
val controls by lazy { OrbitalControls(camera, userInteraction, keySpeed) }
|
||||
|
||||
override fun setup(program: Program) {
|
||||
|
||||
Reference in New Issue
Block a user