Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Application defined, camera specific flags passed to shaders.
Discard objects occupying less pixels than threshold. Set to zero to disable.
If automatic adjustment of the clipping planes should be performed to fit as much of the scene as possible.
Environment to use for rendering.
Exposure factor for HDR rendering.
Distance to the far plane, given in scene units. Only used if enableClippingPlaneAdjustment is false.
Largest value allowed to adjust far plane to.
Vertical field of view, given in radians.
Camera behavior flags.
Focal distance of the camera, given in scene units.
Internal flag set if component is a Cogs Core component.
Layer mask used to determine which RenderComponent instances should be visible in this cameras viewport. The layer mask is combined with the layer of the component, and combined with the component visibility to determine if any rendering should take place.
Lighting mask used to determine which lights are active for the current viewport. The layer mask is combined with the lighting layer of any light components, and of any rendering tasks lighting layer mask.
Distance to the near plane, given in scene units. Only used if enableClippingPlaneAdjustment is false.
Smallest value allowed to adjust near plane to.
Height of the viewport in scene units when using orthographic projection. The width of the projection is determined by the aspect ratio given by viewportSize.
The projection mode to use for the camera.
Render pipeline to apply when rendering to texture. Defaults to the built-in forward rendering pipeline.
Extra options passed when creating the render pipeline,.
The render texture to output the rendered scene from the camera to.
Specifies the ordering of cameras when rendering to the same render target, lower numbers render before higher numberrs.
Subset of the frustum to view (for only rendering a subset of the view covered by the viewport), range [0,1].
Subset of the frustum to view (for only rendering a subset of the view covered by the viewport), range [0,1].
Origin of the viewport covered by this instance, given in screen units from the lower left.
Size of the viewport covered by this instance, given in pixels.
Gets the optional owning entity
Component name == type. For compatibility
Gets calculated projection matrix for this camera. Cogs.js custom field
Gets the type of the component. Ex. "TransformComponent", "SceneComponent" etc.
Gets calculated view matrix for this camera. Cogs.js custom field
Static
createInternal: Creates a new component of the given type (name). Component is wrapped when adding to an entity.
Type of the component. Ex. "TransformComponent"
Created Cogs.js component.
Static
wrap
Defines a camera. Cameras are used by the renderer to perform culling and rendering of the scene.