/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Data/Tools/ezEditor/VisualShader/Math_Rounding.ddl
75 строк
2 KB
Sanakan8472
VSE: Linearized code generation and type system improvements (#1806)
02 фев 2026, 22:06
Не верифицирован
02 фев 2026, 22:06
77419f2
Код
Авторство
О чём код?
Node %Floor { string %Category { "Math/Rounding" } string %Color { "Yellow" } string %Docs { "For each component outputs the closest whole integer number that's smaller or equal than the input value." } InputPin %a { string %Type { "auto" } } OutputPin %result { string %Type { "auto" } string %Inline { "floor($in0)" } string %Tooltip { "The largest integer which is less than or equal to the input (component-wise)." } } } Node %Ceil { string %Category { "Math/Rounding" } string %Color { "Yellow" } string %Docs { "For each component outputs the closest whole integer number that's larger or equal than the input value." } InputPin %a { string %Type { "auto" } } OutputPin %result { string %Type { "auto" } string %Inline { "ceil($in0)" } string %Tooltip { "The smallest integer which is greater than or equal to the input (component-wise)." } } } Node %Round { string %Category { "Math/Rounding" } string %Color { "Yellow" } string %Docs { "For each component outputs the closest whole integer." } InputPin %a { string %Type { "auto" } } OutputPin %result { string %Type { "auto" } string %Inline { "round($in0)" } string %Tooltip { "Rounds the input to the closest integer value (component-wise)." } } } Node %Truncate { string %Category { "Math/Rounding" } string %Color { "Yellow" } string %Docs { "For each component outputs the whole integer part by discarding the fractional part." } InputPin %a { string %Type { "auto" } } OutputPin %result { string %Type { "auto" } string %Inline { "trunc($in0)" } string %Tooltip { "Removes the fractional part of the input without rounding (component-wise)." } } }