Back to Filament

setDoubleSided

docs/android/dokka/filament-android/com.google.android.filament/-material-instance/set-double-sided.md

1.75.0739 B
Original Source

//filament-android/com.google.android.filament/MaterialInstance/setDoubleSided

setDoubleSided

[main]
open fun setDoubleSided(doubleSided: Boolean)

Enables or disables double-sided lighting if the parent Material has double-sided capability, otherwise prints a warning. If double-sided lighting is enabled, backface culling is automatically disabled.

See also

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