/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Data/Tools/ezEditor/VisualShader/Math_Vector.ddl
114 строк
2 KB
Sanakan8472
VSE: Linearized code generation and type system improvements (#1806)
02 фев 2026, 22:06
Не верифицирован
02 фев 2026, 22:06
77419f2
Код
Авторство
О чём код?
Node %Distance { string %Category { "Math/Vector" } string %Color { "Yellow" } string %Docs { "Calculates the distance between the two vectors." } InputPin %a { string %Type { "auto" } } InputPin %b { string %Type { "auto" } } OutputPin %result { string %Type { "float" } string %Inline { "distance(ToBiggerType($in0, $in1), ToBiggerType($in1, $in0))" } string %Tooltip { "The distance between the two input vectors." } } } Node %Length { string %Category { "Math/Vector" } string %Color { "Yellow" } string %Docs { "Calculates the length of the vector." } InputPin %a { string %Type { "auto" } } OutputPin %result { string %Type { "float" } string %Inline { "length($in0)" } string %Tooltip { "The length of the input vector." } } } Node %Dot { string %Category { "Math/Vector" } string %Color { "Yellow" } string %Docs { "Outputs the dot-product of the two vectors." } InputPin %a { string %Type { "auto" } string %DefaultValue { "0" } } InputPin %b { string %Type { "auto" } string %DefaultValue { "0" } } OutputPin %result { string %Type { "float" } string %Inline { "dot(ToBiggerType($in0, $in1), ToBiggerType($in1, $in0))" } string %Tooltip { "Dot product between a and b. A scalar value." } } } Node %Cross { string %Category { "Math/Vector" } string %Color { "Yellow" } string %Docs { "Calculates the cross-product of the two vectors." } InputPin %a { string %Type { "float3" } string %DefaultValue { "0" } } InputPin %b { string %Type { "float3" } string %DefaultValue { "0" } } OutputPin %result { string %Type { "float3" } string %Inline { "cross(ToFloat3($in0), ToFloat3($in1))" } string %Tooltip { "Cross product between a and b. Inputs are converted to float3, result is float3." } } } Node %Normalize { string %Category { "Math/Vector" } string %Color { "Yellow" } string %Docs { "Outputs the normalized input vector." } InputPin %vector { string %Type { "auto" } string %Tooltip { "A vector. Avoid zero vectors to prevent NaN's." } } OutputPin %result { string %Type { "auto" } string %Inline { "normalize($in0)" } string %Tooltip { "The normalized vector." } } }