Back to Filament

setSampleCount

docs/android/dokka/filament-android/com.google.android.filament/-view/set-sample-count.md

1.75.0787 B
Original Source

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

setSampleCount

[main]
open fun setSampleCount(count: Int)


Deprecated


Sets how many samples are to be used for MSAA in the post-process stage. Default is 1 and disables MSAA.

Note that anti-aliasing can also be performed in the post-processing stage, generally at lower cost. See the FXAA option in setAntiAliasing.

Deprecated

use setMultiSampleAntiAliasingOptions instead

Parameters

main

countnumber of samples to use for multi-sampled anti-aliasing.