Back to Filament

Shading

docs/android/dokka/filament-android/com.google.android.filament/-material/-shading/index.md

1.75.01.6 KB
Original Source

//filament-android/com.google.android.filament/Material/Shading

Shading

[main]
enum Shading

Supported shading models

Entries

UNLIT[main]
UNLIT
No lighting applied, emissive possible
LIT[main]
LIT
Default, standard lighting
SUBSURFACE[main]
SUBSURFACE
Subsurface lighting model
CLOTH[main]
CLOTH
Cloth lighting model
SPECULAR_GLOSSINESS[main]
SPECULAR_GLOSSINESS
Legacy lighting model

Functions

NameSummary
valueOf[main]
open fun valueOf(name: 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.)
values[main]
open fun values(): Array<Material.Shading>
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.