Builder
Types
Type of geometry for a Renderable.
Outcome of build.
Functions
Sets the drawing order for blended primitives. The drawing order is either global or local (default) to this Renderable. In either case, the Renderable priority takes precedence.
Defines bone indices and weights pairs for vertex skinning, for primitives with more than 4 bones per vertex.
The axis-aligned bounding box of the renderable.
Adds the Renderable component to an entity.
Controls if this renderable casts shadows, false by default.
Set the channel this renderable is associated to. There can be 8 channels. All renderables in a given channel are rendered together, regardless of anything else. They are sorted as usual within a channel.
Controls frustum culling, true by default.
Allows bones to be swapped out and shared using SkinningBuffer.
Controls if this renderable is affected by the large-scale fog.
Specifies the geometry data for a non-indexed primitive using all vertices.
Specifies the geometry data for a primitive, using the whole index buffer.
Specifies the geometry data for a non-indexed primitive: offset / count refer to vertices.
Specifies the geometry data for a primitive with offset and count.
Specifies the geometry data for a primitive with explicit min/max indices.
Specify the type of geometry for this renderable.
Sets whether the blend order is global or local to this Renderable (by default).
Specifies the number of draw instances of this renderable. The default is 1 instance and the maximum number of instances allowed is 32767. 0 is invalid.
Draws instanceCount instances (1 to Engine.maxAutomaticInstances), each with its local transform from instanceBuffer, which must hold at least that many and outlive this renderable. All instances are culled with the same bounding box. Only Material.VertexDomain.OBJECT is supported; the material must be instanced to read getInstanceIndex().
Sets bits in a visibility mask. By default, this is 0x1.
Enables or disables a light channel. Light channel 0 is enabled by default.
Binds a material instance to the specified primitive.
Controls if the renderable has vertex morphing targets, zero by default.
Controls if the renderable has legacy vertex morphing targets, zero by default.
Specifies the morph target buffer offset for a primitive.
Provides coarse-grained control over draw order.
Controls if this renderable receives shadows, true by default.
Controls if this renderable uses screen-space contact shadows. This is more expensive but can improve the quality of shadows, especially in large scenes. (off by default).
Enables GPU vertex skinning for up to 255 bones, 0 by default.
Enables GPU vertex skinning for up to 255 bones with initial bone transforms.
Enables GPU vertex skinning from a region of a SkinningBuffer.