From bcc18e6dcfa2cd0c5873dd6758cdbeb850821a09 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Wed, 29 Apr 2020 16:37:42 +0200 Subject: [PATCH] Fix type --- Assets/plugins/hello_node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/plugins/hello_node.js b/Assets/plugins/hello_node.js index db709d9f..1c7ec549 100644 --- a/Assets/plugins/hello_node.js +++ b/Assets/plugins/hello_node.js @@ -51,7 +51,7 @@ arm.Material.customNodes.set(nodeType, function(node) { let scale = arm.Material.parse_value_input(node.inputs[0]); frag.write(` - float my_out = cos(sin(texCoord.x * 200 * ${scale}) + cos(texCoord.y * 200 * ${scale})); + float my_out = cos(sin(texCoord.x * 200.0 * ${scale}) + cos(texCoord.y * 200.0 * ${scale})); `); return `vec3(my_out, my_out, my_out)`; });