Shading

actual enum Shading : Enum<Material.Shading>

Shading model determines how light interacts with the material surface.

  • UNLIT: No lighting applied; emissive possible. Useful for UI, billboards, glow effects

  • LIT: Standard physically-based lighting (default)

  • SUBSURFACE: Subsurface scattering for thin materials (skin, leaves, paper)

  • CLOTH: Cloth-specific lighting model for fabric appearance

  • SPECULAR_GLOSSINESS: Legacy shading model (use LIT for new materials)

expect enum Shading : Enum<Material.Shading>

Shading model determines how light interacts with the material surface.

  • UNLIT: No lighting applied; emissive possible. Useful for UI, billboards, glow effects

  • LIT: Standard physically-based lighting (default)

  • SUBSURFACE: Subsurface scattering for thin materials (skin, leaves, paper)

  • CLOTH: Cloth-specific lighting model for fabric appearance

  • SPECULAR_GLOSSINESS: Legacy shading model (use LIT for new materials)

actual enum Shading : Enum<Material.Shading>

Shading model determines how light interacts with the material surface.

  • UNLIT: No lighting applied; emissive possible. Useful for UI, billboards, glow effects

  • LIT: Standard physically-based lighting (default)

  • SUBSURFACE: Subsurface scattering for thin materials (skin, leaves, paper)

  • CLOTH: Cloth-specific lighting model for fabric appearance

  • SPECULAR_GLOSSINESS: Legacy shading model (use LIT for new materials)

actual enum Shading : Enum<Material.Shading>

Shading model determines how light interacts with the material surface.

  • UNLIT: No lighting applied; emissive possible. Useful for UI, billboards, glow effects

  • LIT: Standard physically-based lighting (default)

  • SUBSURFACE: Subsurface scattering for thin materials (skin, leaves, paper)

  • CLOTH: Cloth-specific lighting model for fabric appearance

  • SPECULAR_GLOSSINESS: Legacy shading model (use LIT for new materials)

actual enum Shading : Enum<Material.Shading>

Shading model determines how light interacts with the material surface.

  • UNLIT: No lighting applied; emissive possible. Useful for UI, billboards, glow effects

  • LIT: Standard physically-based lighting (default)

  • SUBSURFACE: Subsurface scattering for thin materials (skin, leaves, paper)

  • CLOTH: Cloth-specific lighting model for fabric appearance

  • SPECULAR_GLOSSINESS: Legacy shading model (use LIT for new materials)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

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

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

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

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

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

name
Link copied to clipboard
expect val name: String
ordinal
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.)

expect fun valueOf(value: String): Material.Shading

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.)

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.)

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.)

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.

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

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

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

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