Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Overall alpha multiplied with the per instance alpha to give effective alpha.
(Contents: vec4[]) Instance colors, alpha gives effect intenisty.
Debug option to force region to be visible regardles contents in the region, to help tracking down misplaced regions.
Pull highlight frontface slightly towards the camera with a constant.
Pull highlight frontface slightly towards the camera based on surface slope.
Draw order within a render bucke. Useful to control transparency overdraw. This value will be overriden by the material's draworder if that is nonzero.
Instance ids.
Internal flag set if component is a Cogs Core component.
Layer mask used to determine visibility for a given camera viewport. The layer mask is combined with that of the camera. The resulting value can then be combined with the result of isVisible() to form a final visibility value.
Object identifier passed to rendering commands.
(Contents: vec3[]) Instance positions.
Render flags used to control rendering behavior.
Instance rotations.
(Contents: vec3[]) Instance scale factors.
Gets the optional owning entity
Component name == type. For compatibility
Gets the type of the component. Ex. "TransformComponent", "SceneComponent" etc.
StaticcreateInternal: 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.
Staticwrap
Component for highlighting regions.