Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Cameras from which the shadow maps will be used, defaults to main camera.
If this light should cast shadows.
Dynamically determine how many cascades should be drawn.
If the light is enabled.
Intensity of the light source.
Internal flag set if component is a Cogs Core component.
Color contribution of the light.
The lighting layer the light belongs to.
The type of light. Modifying this field changes how the field lightDirection is interpreted.
Camera entity of which its z-axis define the shadowmap cascade split axis, defaults to main camera.
Falloff range.
Constant term shadow map rasterization bias.
Shadow map bias rasterization clamp.
Shadow intensity offset.
Shadow near plane. If set to 0 near plane is 1/1000th of the radius.
Constant term shadow map sampling bias.
Linear term of shadow map rasterization bias.
If the shadows should have tight bounds.
Gets the optional owning entity
Component name == type. For compatibility
Gets the type of the component. Ex. "TransformComponent", "SceneComponent" etc.
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 single light source and its behavior.