This commit is contained in:
luboslenco
2025-03-06 20:42:54 +01:00
parent 5d2407e729
commit 118443ce2e
93 changed files with 674 additions and 825 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
type float_node_t = {
base?: logic_node_t;
value?: f32;
image?: image_t;
image?: kinc_g5_texture_t;
};
function float_node_create(raw: ui_node_t, args: f32_array_t): float_node_t {
@@ -25,12 +25,12 @@ function float_node_get(self: float_node_t, from: i32): logic_node_value_t {
}
}
function float_node_get_as_image(self: float_node_t, from: i32): image_t {
function float_node_get_as_image(self: float_node_t, from: i32): kinc_g5_texture_t {
if (self.base.inputs.length > 0) {
return logic_node_input_get_as_image(self.base.inputs[0]);
}
if (self.image != null) {
image_unload(self.image);
iron_unload_image(self.image);
}
let b: buffer_t = buffer_create(16);
buffer_set_f32(b, 0, self.value);