StandardMaterial

The built-in materials shipped with filament-compose — precompiled .filamat blobs embedded in the library, so the common "colour a primitive" case needs no .mat authoring, no matc, and no asset shipping on any target (including Web, where runtime material compilation isn't available).

You rarely name these directly — use the convenience instance helpers (rememberColorMaterialInstance, rememberUnlitColorMaterialInstance, rememberTexturedMaterialInstance, rememberEmissiveMaterialInstance, rememberTransparentColorMaterialInstance) instead. Reach for rememberStandardMaterial only when you want the shared base Material to instantiate yourself.

To go beyond these (cloth, subsurface, refraction, custom shading), author your own .mat, compile it with matc, and load it via rememberMaterial — see docs/compose/materials.md.

The LIT materials are compiled without the skinning / VSM / SSR / stereo variants, so they don't skin and use PCF shadows; that keeps the embedded blobs small.

Entries

Link copied to clipboard

LIT PBR solid colour: baseColor, metallic, roughness, reflectance.

Link copied to clipboard

UNLIT solid colour (ignores scene lighting): baseColor.

Link copied to clipboard

LIT textured base colour: albedo sampler, metallic, roughness. Geometry needs uv0.

Link copied to clipboard

UNLIT emissive (glows through bloom): color, intensity.

Link copied to clipboard

LIT PBR with alpha transparency: baseColor, alpha, metallic, roughness, reflectance.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.