IndexedPBRMaterial

To update a certain material at the specified index. To specify such a indexed material of the target entity to be updated, you can use the [] operator of PBRMaterials. For example,

val pipeline1: Pipeline = ...
pipeline1.updateComponent(..., PBRMaterials[2].Roughness)

Parameters

index

the material index among the target entity's all materials.

Properties

Link copied to clipboard

Update the base color property of the PBR material at specified index.

Link copied to clipboard

Update the base color texture property of the PBR material at specified index.

Link copied to clipboard

Update the metallic property of the PBR material at specified index.

Link copied to clipboard

Update the metallic property of the PBR material at specified index.

Link copied to clipboard

Update the roughness property of the PBR material at specified index.

Link copied to clipboard

Update the roughness property of the PBR material at specified index.