createMaterial
Creates and returns a Material object.
A Filament Material defines the visual appearance of an object. Materials function as a templates from which MaterialInstances can be spawned.
Documentation: Filament Materials Guide
Parameters
payload
Specifies the material data. The material data is a binary blob produced by libfilamat or by matc.
See also
Creates and returns a Material object from Filamat asset file.
Parameters
assetFileLocation
the .filamat asset file location materials/mymaterial.filamat