Camera
Setup cameras and optical effects.
makeCamera()
Make a new camera.
Return
Entity , a pointer to a camera in the world
setActiveCamera(camera)
Set a camera to become the one you see though while playing the game.
Arguments
camera: Entity, a pointer to a camera in the world.
getActiveCamera()
Get the active camera.
Return
Entity , a pointer to an entity in the world, nil if the entity was not found.
setCameraFov(camera, value)
Set the camera field of view.
You can set a standard 35mm lens with this simple formula: fov = 1.0 - radians(35) .
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraFov(camera)
Get the camera field of view.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraExposure(camera, value)
Set the camera exposure.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraExposure(camera)
Get the camera exposure.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraBloom(camera, value)
Set how much bloom will reflect on this camera's lens.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraBloom(camera)
Get how much bloom will reflect on this camera's lens.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraBloomRadius(camera, value)
Set how large the bloom radius will reflect on this camera's lens.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraBloomRadius(camera)
Get how large the bloom radius will reflect on this camera's lens.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraBloomThreshold(camera, value)
Set a threshold past which emission sources will start to blooming.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraBloomThreshold(camera)
Get a threshold past which emission sources will start to blooming.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraVignetteColor(camera, color)
Set the camera lens vignette color.
Arguments
camera: Entity, a pointer to a camera in the world.
color: vec4
getCameraVignetteColor(camera)
Get the camera lens vignette color.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
vec4
setCameraVignetteMidPoint(camera, value)
Set the camera lens vignette mid-point.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraVignetteMidPoint(camera)
Get the camera lens vignette mid-point.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraVignetteRoundness(camera, value)
Set the camera lens vignette roundness.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraVignetteRoundness(camera)
Get the camera lens vignette roundness.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraVignetteFade(camera, value)
Set the camera lens vignette fade.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraVignetteFade(camera)
Get the camera lens vignette fade.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraContrast(camera, value)
Set the contrast of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraContrast(camera)
Get the contrast of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraVibrance(camera, value)
Set the color vibrance of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraVibrance(camera)
Get the color vibrance of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraSaturation(camera, value)
Set the color saturation of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraSaturation(camera)
Get the color saturation of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraBlacks(camera, value)
Set the blacks level of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraBlacks(camera)
Get the blacks level of the final image.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraFocalDistance(camera, value)
Set the camera focal distance.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraFocalDistance(camera)
Get the camera focal distance.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float
setCameraFocalWidth(camera, value)
Set the camera focal width in depth.
Arguments
camera: Entity, a pointer to a camera in the world.
value: number
getCameraFocalWidth(camera)
Get the camera focal width in depth.
Arguments
camera: Entity, a pointer to a camera in the world.
Return
float