FrameInfo

lumin.ExclusiveRender. FrameInfo

FrameInfo for each frame

Constructor

new FrameInfo()

Methods

getColorId() → {number}

Get color buffer ID

Returns:

color buffer ID

Type
number

getDepthId() → {number}

Get depth buffer ID

Returns:

depth buffer ID

Type
number

getNumCameras() → {number}

Get the number of cameras

Returns:

number of cameras

Type
number

getProj(idx) → {mat4}

Get the projection matrix for a given eye

Parameters:
Name Type Description
idx number

index of the eye

Returns:

the projection matrix

Type
mat4

getView(idx) → {mat4}

Get the view matrix for a given eye

Parameters:
Name Type Description
idx number

index of the eye

Returns:

the view matrix

Type
mat4

getViewPortLowerLeft() → {vec2}

Get viewport top left corner

Returns:

top left corner coordinates

Type
vec2

getViewPortSize() → {vec2}

Get viewport size

Returns:

viewport size in pixels

Type
vec2