Back to Filament

setMaterialGlobal

docs/android/dokka/filament-android/com.google.android.filament/-view/set-material-global.md

1.75.0979 B
Original Source

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

setMaterialGlobal

[main]
open fun setMaterialGlobal(index: Int, value: Array<Float>)

Set the value of material global variables. There are up-to four such variable each of type float4. These variables can be read in a user Material with getMaterialGlobal{0|1|2|3}(). All variable start with a default value of { 0, 0, 0, 1 }

Parameters

main

indexindex of the variable to set between 0 and 3.
valuenew value for the variable.

See also

getMaterialGlobal