/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Data/Tools/ezEditor/VisualShader/Output_Decal.ddl
75 строк
1 KB
Sanakan8472
VSE: Linearized code generation and type system improvements (#1806)
02 фев 2026, 22:06
Не верифицирован
02 фев 2026, 22:06
77419f2
Код
Авторство
О чём код?
Node %DecalOutput { string %Category { "Output" } string %Color { "Grape" } string %NodeType { "Main" } string %Docs { "Output node for projected materials such as decals and lights." } string %CodePermutations { "" } string %CheckPermutations {""} string %CodeRenderStates { "#include <Shaders/Decals/DecalState.h>" } string %CodeVertexDefines { "" } string %CodeVertexIncludes { " #include <Shaders/Decals/DecalVertexShader.h> " } string %CodeVertexBody { " VS_OUT main(VS_IN Input) { return FillVertexData(Input); } " } string %CodeMaterialParams { "" } string %CodePixelDefines { "" } string %CodePixelIncludes { " #include <Shaders/Decals/DecalPixelShader.h> #include <Shaders/Common/VisualShaderUtil.h> " } string %CodePixelSamplers { "" } string %CodePixelConstants { "" } string %CodeMaterialConstants { " // Insert custom Visual Shader parameters here VSE_CONSTANTS " } string %CodePixelBody { " float3 GetBaseColor() { return ToColor3($in0); } float GetOpacity() { return saturate(ToFloat1($in1)); } " } // Pin 0 InputPin %BaseColor { string %Type { "float3" } unsigned_int8 %Color { 200, 200, 200 } bool %Expose { true } string %DefaultValue { "1, 1, 1" } } // Pin 1 InputPin %Opacity { string %Type { "float" } string %Color { "Red" } bool %Expose { true } string %DefaultValue { "1" } } }