Lysa  0.0
Lysa 3D Engine
Camera Class Referenceabstract

Detailed Description

A scene camera that provides view and projection matrices.

Lua full name: lysa.Camera

Public Member Functions

Ray screen_to_world (screen_pos: float2, screen_size: float2)
 Unprojects a 2-D screen-space position to a world-space ray originating at the camera. More...
 

Properties

integer id
 Unique camera identifier.
 
float4x4 transform
 Camera world-space transform (view) matrix.
 
float4x4 projection
 Camera projection matrix (perspective or orthographic).
 

Member Function Documentation

Ray screen_to_world ( float2  screen_pos,
float2  screen_size)

Unprojects a 2-D screen-space position to a world-space ray originating at the camera.

Parameters
screen_posfloat2
screen_sizefloat2
Returns
Ray

Property Documentation

integer id

Unique camera identifier.

float4x4 transform

Camera world-space transform (view) matrix.

float4x4 projection

Camera projection matrix (perspective or orthographic).