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

View File

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