Back to Filament

CullingMode

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

1.75.01.7 KB
Original Source

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

CullingMode

enum CullingMode

Face culling Mode

See also

<a href="https://google.github.io/filament/Materials.html#materialdefinitions/materialblock/rasterization:culling">Rasterization: culling

Entries

NONE[main]
NONE
No culling. Front and back faces are visible.
FRONT[main]
FRONT
Front face culling. Only back faces are visible.
BACK[main]
BACK
Back face culling. Only front faces are visible.
FRONT_AND_BACK[main]
FRONT_AND_BACK
Front and back culling. Geometry is not visible.

Functions

NameSummary
valueOf[main]
open fun valueOf(name: String): Material.CullingMode
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.CullingMode>
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.