Back to Filament

setStereoscopicOptions

docs/android/dokka/filament-android/com.google.android.filament/-view/set-stereoscopic-options.md

1.75.01.1 KB
Original Source

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

setStereoscopicOptions

[main]
open fun setStereoscopicOptions(options: View.StereoscopicOptions)

Sets the stereoscopic rendering options for this view.

Currently, only one type of stereoscopic rendering is supported: side-by-side. Side-by-side stereo rendering splits the viewport into two halves: a left and right half. Eye 0 will render to the left half, while Eye 1 will render into the right half.

Currently, the following features are not supported with stereoscopic rendering: - post-processing - shadowing - punctual lights

Stereo rendering depends on device and platform support. To check if stereo rendering is supported, use isStereoSupported. If stereo rendering is not supported, then the stereoscopic options have no effect.

Parameters

main

optionsThe stereoscopic options to use on this view

See also

getStereoscopicOptions