Skip to content
Adrien GIVRY edited this page Sep 26, 2020 · 3 revisions

Description

Represents a camera entity. Its position will determine its view matrix

Variables

This usertype has no variables

Constructors

Name Input Output Description
new Camera Default constructor

Functions

Name Input Output Description
GetFov Camera: instance
number Returns the field of view of the camera (Perspective)
GetSize Camera: instance
number Returns the size of the camera (Orthographic)
GetNear Camera: instance
number Returns the distance between the camera and its near plane
GetFar Camera: instance
number Returns the distance between the camera and its far plane
GetClearColor Camera: instance
Vector3 Returns the background color used before rendering the scene with this camera
SetFov Camera: instance
number: fov
Defines the field of view of the camera (Perspective)
SetSize Camera: instance
number: size
Defines the size of the camera (Orthographic)
SetNear Camera: instance
number: near
Defines the distance between the camera and its near plane
SetFar Camera: instance
number: far
Defines the distance between the camera and its far plane
SetClearColor Camera: instance
Vector3: color
Defines the background color used before rendering the scene with this camera
HasFrustumGeometryCulling Camera: instance
boolean Returns true if the camera is culling geometry outside of its frustum
HasFrustumLightCulling Camera: instance
boolean Returns true if the camera is culling lights outside of its frustum
GetProjectionMode Camera: instance
ProjectionMode Returns the projection mode used by the camera (Orthographic or Perspective)
SetFrustumGeometryCulling Camera: instance
boolean: cull
Defines if the camera should cull geometry outside of its frustum
SetFrustumLightCulling Camera: instance
boolean: cull
Defines if the camera should cull lights outside of its frustum
SetProjectionMode Camera: instance
ProjectionMode: mode
Defines the projection mode the camera should be using (Orthographic or Perspective)

Operators

This usertype has no operators

Clone this wiki locally