Back to Filament

sphericalHarmonicsBandCount

docs/android/dokka/filament-android/com.google.android.filament/-material/-builder/spherical-harmonics-band-count.md

1.75.0984 B
Original Source

//filament-android/com.google.android.filament/Material/Builder/sphericalHarmonicsBandCount

sphericalHarmonicsBandCount

[main]
open fun sphericalHarmonicsBandCount(shBandCount: Int): Material.Builder

Sets the quality of the indirect lights computations. This is only taken into account if this material is lit and in the surface domain. This setting will affect the IndirectLight computation if one is specified on the Scene and Spherical Harmonics are used for the irradiance.

Return

Reference to this Builder for chaining calls.

Parameters

main

shBandCountNumber of spherical harmonic bands. Must be 1, 2 or 3 (default).

See also

IndirectLight