Package-level declarations

Types

Link copied to clipboard
typealias Model = FilamentAsset
Link copied to clipboard
typealias ModelInstance = FilamentInstance

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ModelInstance.engine: Engine
Link copied to clipboard

Changes whether or not the renderable casts shadows.

Link copied to clipboard

Changes whether or not the renderable can receive shadows.

Link copied to clipboard
Link copied to clipboard
val ModelInstance.lightManager: LightManager
Link copied to clipboard

Changes the material instances binding for the given primitives.

Link copied to clipboard
val ModelInstance.model: FilamentAsset
Link copied to clipboard
val ModelInstance.renderableManager: RenderableManager
Link copied to clipboard
Link copied to clipboard

Gets the immutable number of primitives in the renderables.

Functions

Link copied to clipboard
fun <T : Renderable, B : Renderable.Builder<T, B>> Renderable.Builder<T, B>.asDeferred(engine: Engine): Deferred<T>

Deferred renderable loading is a non-blocking cancellable future.

Link copied to clipboard
fun ModelInstance.attachSkin(target: Node, @IntRange(from = 0) skinIndex: Int = 0)

Attaches the given skin to the given node, which must have an associated mesh with BONE_INDICES and BONE_WEIGHTS attributes.

Link copied to clipboard
suspend fun <T : Renderable, B : Renderable.Builder<T, B>> Renderable.Builder<T, B>.await(engine: Engine): T

Awaits for loading a Renderable with the parameters of the builder without blocking a thread.

Link copied to clipboard
suspend fun <T : Renderable, B : Renderable.Builder<T, B>> Renderable.Builder<T, B>.build(engine: Engine, coroutineScope: LifecycleCoroutineScope)

Load a Renderable in a coroutine scope without blocking a thread.

Link copied to clipboard
fun ModelInstance.detachSkin(target: Node, @IntRange(from = 0) skinIndex: Int = 0)

Attaches the given skin to the given node, which must have an associated mesh with BONE_INDICES and BONE_WEIGHTS attributes.

Link copied to clipboard
fun Animator.getAnimationIndex(animationName: String): Int?
Link copied to clipboard
Link copied to clipboard
fun ModelInstance.setBlendOrder(@IntRange(from = 0, to = 65535) blendOrder: Int)

Changes the drawing order for blended primitives.

Link copied to clipboard

Changes whether or not frustum culling is on.

Link copied to clipboard

Changes whether the blend order is global or local to this Renderable (by default).

Link copied to clipboard
fun ModelInstance.setLayerMask(@IntRange(from = 0, to = 255) select: Int, @IntRange(from = 0, to = 255) value: Int)

Changes the visibility bits.

Link copied to clipboard
fun ModelInstance.setMorphWeights(weights: FloatArray, @IntRange(from = 0) offset: Int = weights.size)

Updates the vertex morphing weights on a renderable, all zeroes by default.

Link copied to clipboard
fun ModelInstance.setPriority(@IntRange(from = 0, to = 7) priority: Int)

Changes the coarse-level draw ordering.

Link copied to clipboard

Changes whether or not the renderable can use screen-space contact shadows.