createMaterialInstance
Creates or fetches a compiled Filament material, then creates an instance from it.
Parameters
Properties of the glTF material; may be mutated to trim unsupported features.
Output: mapping from glTF texcoord sets to Filament UV sets, written by the provider.
Optional debug name for the material instance.
Optional glTF extras as stringified JSON (not part of the cache key).
Creates or fetches a compiled Filament material, then creates an instance from it.
Parameters
Properties of the glTF material; may be mutated to trim unsupported features.
Output: mapping from glTF texcoord sets to Filament UV sets, written by the provider.
Optional debug name for the material instance.
Optional glTF extras as stringified JSON (not part of the cache key).
Creates or fetches a compiled Filament material, then creates an instance from it.
Parameters
Properties of the glTF material; may be mutated to trim unsupported features.
Output: mapping from glTF texcoord sets to Filament UV sets, written by the provider.
Optional debug name for the material instance.
Optional glTF extras as stringified JSON (not part of the cache key).
Creates or fetches a compiled Filament material, then creates an instance from it.
Parameters
Properties of the glTF material; may be mutated to trim unsupported features.
Output: mapping from glTF texcoord sets to Filament UV sets, written by the provider.
Optional debug name for the material instance.
Optional glTF extras as stringified JSON (not part of the cache key).
Creates or fetches a compiled Filament material, then creates an instance from it.
Parameters
Properties of the glTF material; may be mutated to trim unsupported features.
Output: mapping from glTF texcoord sets to Filament UV sets, written by the provider.
Optional debug name for the material instance.
Optional glTF extras as stringified JSON (not part of the cache key).