Skip to content

Commit

Permalink
πŸ› [Nodes] Fix using output indices
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Nov 8, 2023
1 parent dbe85c4 commit 9690aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Module_Nodes/CodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ static auto gen_output_function(Cool::OutputPin const& pin, CodeGenContext& cont
.name = func_name,
.definition = fmt::format(
R"STR(
float {}/*coollabdef*/()
vec2 {}/*coollabdef*/()
{{
return {};
return vec2({}, 1.); // Convert float to float_and_alpha
}}
)STR",
func_name, output_name
Expand Down

0 comments on commit 9690aab

Please sign in to comment.