From 9690aab19afa6214e6c11d8d1f4646c357fb948b Mon Sep 17 00:00:00 2001 From: Jules Fouchy Date: Wed, 8 Nov 2023 02:57:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[Nodes]=20Fix=20using=20output?= =?UTF-8?q?=20indices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Module_Nodes/CodeGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module_Nodes/CodeGen.cpp b/src/Module_Nodes/CodeGen.cpp index 6072d97ed..1cb859222 100644 --- a/src/Module_Nodes/CodeGen.cpp +++ b/src/Module_Nodes/CodeGen.cpp @@ -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