[orx-camera] Add orthogonal projection

This commit is contained in:
Edwin Jakobs
2020-07-22 15:29:25 +02:00
parent 3409230147
commit b35aede77f
3 changed files with 49 additions and 13 deletions

View File

@@ -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) {