Fixed truchet nodes (broken by seed related changes)

This commit is contained in:
RodZill4 2020-04-03 08:03:51 +02:00
parent d9a482eb11
commit fd83287000
2 changed files with 7 additions and 11 deletions

View File

@ -5,10 +5,8 @@
"y": 0 "y": 0
}, },
"parameters": { "parameters": {
"Size": 4,
"shape": 1, "shape": 1,
"size": 4, "size": 4
"type": 1
}, },
"shader_model": { "shader_model": {
"code": "", "code": "",
@ -20,7 +18,7 @@
"name": "Truchet", "name": "Truchet",
"outputs": [ "outputs": [
{ {
"f": "truchet$shape($uv*$size, vec2($seed, $seed))", "f": "truchet$shape($uv*$size, vec2(float($seed)))",
"type": "f" "type": "f"
} }
], ],
@ -42,14 +40,14 @@
] ]
}, },
{ {
"control": "None",
"default": 4, "default": 4,
"label": "Size", "label": "Size",
"max": 64, "max": 64,
"min": 2, "min": 2,
"name": "size", "name": "size",
"step": 1, "step": 1,
"type": "float", "type": "float"
"widget": "spinbox"
} }
] ]
}, },

View File

@ -5,10 +5,7 @@
"y": 0 "y": 0
}, },
"parameters": { "parameters": {
"Size": 4, "size": 6
"shape": 0,
"size": 6,
"type": 1
}, },
"shader_model": { "shader_model": {
"code": "", "code": "",
@ -25,12 +22,13 @@
"name": "Generic Truchet", "name": "Generic Truchet",
"outputs": [ "outputs": [
{ {
"rgba": "$in(truchet_generic_uv($uv*$size, vec2($seed, $seed)))", "rgba": "$in(truchet_generic_uv($uv*$size, vec2(float($seed))))",
"type": "rgba" "type": "rgba"
} }
], ],
"parameters": [ "parameters": [
{ {
"control": "None",
"default": 4, "default": 4,
"label": "Size", "label": "Size",
"max": 64, "max": 64,