/
fadaliastro
/
MGFI
Обзор
Документация
Войти
/
fadaliastro
/
MGFI
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
node_modules/three/src/nodes/utils/Timer.js
26 строк
744 B
Fa-Dali
Initial commit
28 янв 2026, 00:16
28 янв 2026, 00:16
d5a5086
Код
Авторство
О чём код?
import { renderGroup } from '../core/UniformGroupNode.js'; import { uniform } from '../core/UniformNode.js'; /** * Represents the elapsed time in seconds. * * @tsl * @type {UniformNode<float>} */ export const time = /*@__PURE__*/ uniform( 0 ).setGroup( renderGroup ).onRenderUpdate( ( frame ) => frame.time ); /** * Represents the delta time in seconds. * * @tsl * @type {UniformNode<float>} */ export const deltaTime = /*@__PURE__*/ uniform( 0 ).setGroup( renderGroup ).onRenderUpdate( ( frame ) => frame.deltaTime ); /** * Represents the current frame ID. * * @tsl * @type {UniformNode<uint>} */ export const frameId = /*@__PURE__*/ uniform( 0, 'uint' ).setGroup( renderGroup ).onRenderUpdate( ( frame ) => frame.frameId );