Back to Filament

setFrontFaceWindingInverted

docs/android/dokka/filament-android/com.google.android.filament/-view/set-front-face-winding-inverted.md

1.75.0933 B
Original Source

//filament-android/com.google.android.filament/View/setFrontFaceWindingInverted

setFrontFaceWindingInverted

[main]
open fun setFrontFaceWindingInverted(inverted: Boolean)

Inverts the winding order of front faces. By default front faces use a counter-clockwise winding order. When the winding order is inverted, front faces are faces with a clockwise winding order. Changing the winding order will directly affect the culling mode in materials (see Material#getCullingMode). Inverting the winding order of front faces is useful when rendering mirrored reflections (water, mirror surfaces, front camera in AR, etc.).

Parameters

main

invertedTrue to invert front faces, false otherwise.