Back to Filament

TransparencyMode

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

1.75.02.0 KB
Original Source

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

TransparencyMode

enum TransparencyMode

How transparent objects are handled

See also

<a href="https://google.github.io/filament/Materials.html#materialdefinitions/materialblock/blendingandtransparency:transparencymode">Blending and transparency: transparencyMode

Entries

DEFAULT[main]
DEFAULT
The transparent object is drawn honoring the raster state.
TWO_PASSES_ONE_SIDE[main]
TWO_PASSES_ONE_SIDE
The transparent object is first drawn in the depth buffer, then in the color buffer, honoring the culling mode, but ignoring the depth test function.
TWO_PASSES_TWO_SIDES[main]
TWO_PASSES_TWO_SIDES
The transparent object is drawn twice in the color buffer, first with back faces only, then with front faces; the culling mode is ignored. Can be combined with two-sided lighting.

Functions

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