Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
The location where the badge is anchored. [0,0] is bottom left and [1,1] is top right. [0.5, 0.5] is middle, which is default.
Size of the badge.
Position of the lower corner of the bounding box. It is set as [0,0] as bottom left corner by default.
Position of the upper corner of the bounding box. It is set as [1,1] as top right corner by default.
Texture array (ktx2) containing all valid numeric icons. Index is retrieved from InstanceColor's x value.
Determines the far limit where the badge stops scaling freely.
Don't display badges further than this distance from the camera.
Icon (index) to be rendered on top of style.
Texture array (ktx2) containing icons. Index is retrieved from InstanceColor's w value.
Internal flag set if component is a Cogs Core component.
Determines the near limit where the badge stops scaling freely.
Don't display badges closer than this distance from the camera.
The number to display on the badge.
Output alpha value for the fragments not discarded by the shader.
(Contents: vec3[]) Badge positions.
Style (index) used for background behind icon.
Texture array (ktx2) containing background styling. Index is retrieved from InstanceColor's y value.
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 showing lots of badges.