diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-09-24 11:53:12 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-09-24 11:53:12 +0530 |
| commit | ab03ea15ad548983bdff9b94665525ae155fd659 (patch) | |
| tree | 55dd83698f6badfc69fffcc2b80bd14ec9649e0e /src/main/kotlin/phenax | |
| parent | c853f72ccf8a968edbdf15b3f8204772f66a5c23 (diff) | |
| download | art-playground-openrndr-ab03ea15ad548983bdff9b94665525ae155fd659.tar.gz art-playground-openrndr-ab03ea15ad548983bdff9b94665525ae155fd659.zip | |
Door thingy
Diffstat (limited to 'src/main/kotlin/phenax')
| -rw-r--r-- | src/main/kotlin/phenax/extensions/CameraManager.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/phenax/extensions/CameraManager.kt b/src/main/kotlin/phenax/extensions/CameraManager.kt index 0303a54..d14205f 100644 --- a/src/main/kotlin/phenax/extensions/CameraManager.kt +++ b/src/main/kotlin/phenax/extensions/CameraManager.kt @@ -26,6 +26,13 @@ class CameraManager(public var cameraPosition: Vector3, public var cameraRotatio var lastPos: Vector3? = null constructor() : this(Vector3(0.0, 1.0, 0.0), Vector3.ZERO) {} + constructor( + cameraPosition: Vector3, + cameraRotation: Vector3, + lightPos: Vector3 + ) : this(cameraPosition, cameraRotation) { + lightPosition = lightPos + } override fun setup(program: Program) { if (recordingEnabled) return |
