Back to Filament

setMaterialTimeEpoch

docs/android/dokka/filament-android/com.google.android.filament/-renderer/set-material-time-epoch.md

1.75.0896 B
Original Source

//filament-android/com.google.android.filament/Renderer/setMaterialTimeEpoch

setMaterialTimeEpoch

[main]
open fun setMaterialTimeEpoch(monotonicClockNanos: Long)

Sets the material time epoch to the specified steady clock timestamp in nanoseconds, i.e. resets the material time to zero relative to that time.

Use this method to keep the precision of time high in materials, in practice it should be called at least when the application is paused, e.g. Activity.onPause in Android.

Parameters

main

monotonicClockNanosThe steady clock timestamp in nanoseconds to set as the material time epoch.

See also

getMaterialTime