Static Member Summary
Static Public Members | ||
public static get |
propsTypes: * |
Constructor Summary
Public Constructor | ||
public |
Constructor. |
Member Summary
Public Members | ||
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
inverseProjectionMatrix: mat4 |
|
public get |
inverseViewMatrix: mat4 |
|
public get |
|
|
public get |
|
|
public set |
|
|
public get |
projectionMatrix: mat4 |
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
renderTargetMulti: *[] |
|
public set |
renderTargetMulti: *[] |
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
viewMatrix: mat4 |
|
public get |
viewProjectionMatrix: mat4 |
Method Summary
Public Methods | ||
public abstract |
buildCameraMatrix(target: mat4, width: number, height: number) Building camera matrix. |
|
public |
convertUnitPointToGlobalPoint(target: vec2, unitVec: vec2) Convert screen space unit ([-1; 1]) vec2 point to global vec2 point. |
|
public |
dispose() |
|
public |
onAction(name: *, args: ...*): * |
|
public |
onAttach() |
|
public |
onDetach() |
|
public |
Called on view resize. |
|
public |
onView(gl: WebGLRenderingContext, renderer: RenderSystem, deltaTime: number): boolean Called when camera need to view rendered scene. |
|
public |
registerPostprocess(postprocess: PostprocessPass, floatPointData: boolean) Register postprocess. |
|
public |
Unregister postprocess. |
Inherited Summary
From class Component | ||
public static get |
propsTypes: * |
|
public static |
Component factory. |
|
public get |
|
|
public |
[name]: * |
|
public |
deserialize(json: *) Deserialize JSON properties into this component. |
|
public |
dispose() Destructor (dispose internal resources and detach from entity). |
|
public |
Called when action arrived. |
|
public |
onAlterActionArguments(name: string, args: *): array | undefined Called when asked to alter arrived action parameters. |
|
public |
onAttach() Called after attached to entity. |
|
public |
onDetach() Called before detached from entity. |
|
public |
onPropertySerialize(name: string, value: *): * Called when property is serialized. |
|
public |
onPropertySetup(name: string, value: *) Called when given property is deserialized. |
|
public |
serialize(): * Serialize component into JSON data. |
Static Public Members
Static Public Methods
Public Constructors
Public Members
public get inverseProjectionMatrix: mat4 source
public get inverseViewMatrix: mat4 source
public get inverseViewProjectionMatrix: mat4 source
public get projectionMatrix: mat4 source
public get renderTargetMulti: *[] source
public set renderTargetMulti: *[] source
public get viewMatrix: mat4 source
public get viewProjectionMatrix: mat4 source
Public Methods
public abstract buildCameraMatrix(target: mat4, width: number, height: number) source
Building camera matrix.
public convertUnitPointToGlobalPoint(target: vec2, unitVec: vec2) source
Convert screen space unit ([-1; 1]) vec2 point to global vec2 point.
Params:
Name | Type | Attribute | Description |
target | vec2 | Result vec2 point. |
|
unitVec | vec2 | Input screen space unit vec2 point. |
public dispose() source
Destructor (dispose internal resources and detach from entity).
Override:
Component#disposepublic onAction(name: *, args: ...*): * source
Called when action arrived.
Override:
Component#onActionParams:
Name | Type | Attribute | Description |
name | * | ||
args | ...* |
Return:
* |
public onView(gl: WebGLRenderingContext, renderer: RenderSystem, deltaTime: number): boolean source
Called when camera need to view rendered scene.
Params:
Name | Type | Attribute | Description |
gl | WebGLRenderingContext | WebGL context. |
|
renderer | RenderSystem | Calling renderer instance. |
|
deltaTime | number | Delta time. |
public registerPostprocess(postprocess: PostprocessPass, floatPointData: boolean) source
Register postprocess.
Params:
Name | Type | Attribute | Description |
postprocess | PostprocessPass | Postprocess pass. |
|
floatPointData | boolean | Tells if stores floating point texture data. |