Falco Engine 3.9.0.1 (beta)
FalcoEngine.Camera Class Reference
Inheritance diagram for FalcoEngine.Camera:
FalcoEngine.Component

Public Types

enum  GBufferTexture {
  Diffuse , Normals , MetallicRoughnessAOSpecular , Lightmap ,
  Depth
}
 GBufferTexture enum More...
 

Public Member Functions

Vector3 WorldToScreenPoint (Vector3 world)
 Convert world to screen point More...
 
Vector3 ScreenToWorldPoint (Vector3 screen)
 Convert screen to world point More...
 
Matrix4 GetViewMatrix (bool ownFrustumOnly=false)
 Returns a view matrix of this camera More...
 
Matrix4 GetProjectionMatrix ()
 Returns a projection matrix of this camera More...
 
bool IsObjectVisible (GameObject @object)
 Checks if the game object is in field of view of this camera More...
 
Texture GetGBufferTexture (GBufferTexture textureType)
 Get GBuffer texture from channel pointed by textureType More...
 

Properties

RenderTexture renderTarget [getset]
 Get or set the render texture as a render target More...
 
float nearClipDistance [getset]
 The distance of the near clipping plane from the camera, in world units More...
 
float farClipDistance [getset]
 The distance of the far clipping plane from the camera, in world units More...
 
- Properties inherited from FalcoEngine.Component
bool enabled [getset]
 Enable or disable this component More...
 
GameObject gameObject [get]
 Get game object at which this component is attached More...
 
bool isUiComponent [get]
 Returns if this component is derived from UIElement (or this is a canvas) or not More...
 

Additional Inherited Members

- Protected Member Functions inherited from FalcoEngine.Component
 Component ()
 

Detailed Description

Definition at line 5 of file Camera.cs.

Member Enumeration Documentation

◆ GBufferTexture

GBufferTexture enum

Enumerator
Diffuse 
Normals 
MetallicRoughnessAOSpecular 
Lightmap 
Depth 

Definition at line 10 of file Camera.cs.

Member Function Documentation

◆ GetGBufferTexture()

Texture FalcoEngine.Camera.GetGBufferTexture ( GBufferTexture  textureType)

Get GBuffer texture from channel pointed by textureType

Parameters
textureType
Returns

Definition at line 99 of file Camera.cs.

◆ GetProjectionMatrix()

Matrix4 FalcoEngine.Camera.GetProjectionMatrix ( )

Returns a projection matrix of this camera

Returns

Definition at line 68 of file Camera.cs.

◆ GetViewMatrix()

Matrix4 FalcoEngine.Camera.GetViewMatrix ( bool  ownFrustumOnly = false)

Returns a view matrix of this camera

Parameters
ownFrustumOnly
Returns

Definition at line 58 of file Camera.cs.

◆ IsObjectVisible()

bool FalcoEngine.Camera.IsObjectVisible ( GameObject object)

Checks if the game object is in field of view of this camera

Parameters
object
Returns

Definition at line 79 of file Camera.cs.

◆ ScreenToWorldPoint()

Vector3 FalcoEngine.Camera.ScreenToWorldPoint ( Vector3  screen)

Convert screen to world point

Parameters
screen
Returns

Definition at line 46 of file Camera.cs.

◆ WorldToScreenPoint()

Vector3 FalcoEngine.Camera.WorldToScreenPoint ( Vector3  world)

Convert world to screen point

Parameters
world
Returns

Definition at line 34 of file Camera.cs.

Property Documentation

◆ farClipDistance

float FalcoEngine.Camera.farClipDistance
getset

The distance of the far clipping plane from the camera, in world units

Definition at line 92 of file Camera.cs.

◆ nearClipDistance

float FalcoEngine.Camera.nearClipDistance
getset

The distance of the near clipping plane from the camera, in world units

Definition at line 87 of file Camera.cs.

◆ renderTarget

RenderTexture FalcoEngine.Camera.renderTarget
getset

Get or set the render texture as a render target

Definition at line 27 of file Camera.cs.


The documentation for this class was generated from the following file: