Back to Filament

getMaterialGlobal

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

1.75.01.1 KB
Original Source

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

getMaterialGlobal

[main]
open fun getMaterialGlobal(index: Int, out: Array<Float>): Array<Float>

Get the value of the material global variables. All variable start with a default value of { 0, 0, 0, 1 }

Return

A 4-float array containing the current value of the variable.

Parameters

main

indexindex of the variable to set between 0 and 3.
outA 4-float array where the value will be stored, or null in which case the array is allocated.

See also

setMaterialGlobal