Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Amount of fog to blend in.
Fog color.
Distance at which the fog is at its most dense.
If the fog should be enabled or disabled.
Internal flag set if component is a Cogs Core component.
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
Contains data to describe fog. Currently only supports one fog component, defined as the global fog of the context.