material

actual fun material(index: Int, materialInstance: MaterialInstance): RenderableManager.Builder

Binds a material instance to the specified primitive.

If no material is specified for a given primitive, Filament will fall back to a basic default material.

The MaterialInstance's material must have a feature level equal or lower to the engine's selected feature level.

Return

Builder reference for chaining calls.

Parameters

index

zero-based index of the primitive, must be less than the count passed to Builder constructor

materialInstance

the material to bind

expect fun material(index: Int, materialInstance: MaterialInstance): RenderableManager.Builder

Binds a material instance to the specified primitive.

If no material is specified for a given primitive, Filament will fall back to a basic default material.

The MaterialInstance's material must have a feature level equal or lower to the engine's selected feature level.

Return

Builder reference for chaining calls.

Parameters

index

zero-based index of the primitive, must be less than the count passed to Builder constructor

materialInstance

the material to bind

actual fun material(index: Int, materialInstance: MaterialInstance): RenderableManager.Builder

Binds a material instance to the specified primitive.

If no material is specified for a given primitive, Filament will fall back to a basic default material.

The MaterialInstance's material must have a feature level equal or lower to the engine's selected feature level.

Return

Builder reference for chaining calls.

Parameters

index

zero-based index of the primitive, must be less than the count passed to Builder constructor

materialInstance

the material to bind

actual fun material(index: Int, materialInstance: MaterialInstance): RenderableManager.Builder

Binds a material instance to the specified primitive.

If no material is specified for a given primitive, Filament will fall back to a basic default material.

The MaterialInstance's material must have a feature level equal or lower to the engine's selected feature level.

Return

Builder reference for chaining calls.

Parameters

index

zero-based index of the primitive, must be less than the count passed to Builder constructor

materialInstance

the material to bind

actual fun material(index: Int, materialInstance: MaterialInstance): RenderableManager.Builder

Binds a material instance to the specified primitive.

If no material is specified for a given primitive, Filament will fall back to a basic default material.

The MaterialInstance's material must have a feature level equal or lower to the engine's selected feature level.

Return

Builder reference for chaining calls.

Parameters

index

zero-based index of the primitive, must be less than the count passed to Builder constructor

materialInstance

the material to bind