Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
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 count. uint32_t(-1) to draw all remaining instances.
Multiplier used when embedding instance ids into picking results. If geometry mesh texcoord ids run in [0, N), setting multiplier to N will stack the ids of the instances on top of eachother. Set to zero to disable embedding of instance ids.
Mesh containing instancing data. Setting mesh bounds for the instance mesh will avoid calculations, in particular for instance matrices. These bounds are extended by the bounds by the geometry mesh.
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.
Material instance used to render the mesh.
Object identifier passed to rendering commands.
Primitive type to use when drawing. Default value -1 means use primitive type from mesh.
Render flags used to control rendering behavior.
Start vertex index to render from.
Start instance.
Number of vertexes to draw. uint32_t(-1) to draw all remaining vertices.
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
Renders a mesh using instancing.