Camera

Fields

isPerspective
perspectiveFieldOfView
orthographicHalfSize
nearViewDistance
farViewDistance
layersToRender
transformMatrix
viewMatrix
projectionMatrix

Properties

viewportWidth
viewportHeight
viewportSize

Functions

ScreenToWorldSpace(Vector3 screenSpace, Vector2 overrideResolution)
GetRaycastDir(Vector2 screenPosition, Vector2 overrideResolution)
GetRaycastOrigin(Vector2 screenMousePosition, Vector2 overrideResolution)
GetRaycastDir(Vector2 screenPosition, Vector3& centerDir, Vector2 overrideResolution)
GetFrustumSliceAt(float depth)
WorldToClipSpace(Vector3 worldSpace)
WorldToScreenSpace(Vector3 worldSpace, Vector2 overrideResolution)

Static Functions

UpdateCamera(Entity entity, Transform& transform, Camera& camera)