Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
294 lines
6.0 KiB
JSON
294 lines
6.0 KiB
JSON
{
|
|
"graphId": "control-test",
|
|
"catalogVersion": 4,
|
|
"nodes": [
|
|
{
|
|
"id": "color",
|
|
"typeId": "fxnode.shader.color",
|
|
"typeVersion": 1,
|
|
"known": true,
|
|
"position": {
|
|
"x": 300,
|
|
"y": 200
|
|
},
|
|
"size": {
|
|
"x": 151,
|
|
"y": 100
|
|
},
|
|
"label": "Color",
|
|
"parameters": {
|
|
"color": {
|
|
"kind": "color",
|
|
"value": [
|
|
0.8,
|
|
0.8,
|
|
0.8,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"sockets": [
|
|
{
|
|
"id": "color:color",
|
|
"key": "color",
|
|
"label": "Color",
|
|
"direction": "output",
|
|
"dataType": "color",
|
|
"accepts": [],
|
|
"maxIncomingLinks": 0,
|
|
"visible": true
|
|
}
|
|
],
|
|
"muted": false,
|
|
"collapsed": false,
|
|
"extensions": {}
|
|
},
|
|
{
|
|
"id": "group",
|
|
"typeId": "fxnode.common.group-input",
|
|
"typeVersion": 1,
|
|
"known": true,
|
|
"position": {
|
|
"x": -100,
|
|
"y": -100
|
|
},
|
|
"size": {
|
|
"x": 257,
|
|
"y": 100
|
|
},
|
|
"label": "Group Input",
|
|
"parameters": {
|
|
"interfaceName": {
|
|
"kind": "string",
|
|
"value": "Socket"
|
|
}
|
|
},
|
|
"sockets": [
|
|
{
|
|
"id": "group:output",
|
|
"key": "output",
|
|
"label": "Interface",
|
|
"direction": "output",
|
|
"dataType": "any",
|
|
"accepts": [],
|
|
"maxIncomingLinks": 0,
|
|
"visible": true
|
|
}
|
|
],
|
|
"muted": false,
|
|
"collapsed": false,
|
|
"extensions": {}
|
|
},
|
|
{
|
|
"id": "math",
|
|
"typeId": "fxnode.shader.math",
|
|
"typeVersion": 1,
|
|
"known": true,
|
|
"position": {
|
|
"x": -250,
|
|
"y": 200
|
|
},
|
|
"size": {
|
|
"x": 192,
|
|
"y": 148
|
|
},
|
|
"label": "Math",
|
|
"parameters": {
|
|
"operation": {
|
|
"kind": "string",
|
|
"value": "add"
|
|
},
|
|
"clamp": {
|
|
"kind": "boolean",
|
|
"value": false
|
|
}
|
|
},
|
|
"sockets": [
|
|
{
|
|
"id": "math:a",
|
|
"key": "a",
|
|
"label": "A",
|
|
"direction": "input",
|
|
"dataType": "float",
|
|
"accepts": [
|
|
"float",
|
|
"any"
|
|
],
|
|
"maxIncomingLinks": 1,
|
|
"visible": true,
|
|
"defaultValue": {
|
|
"kind": "number",
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "math:b",
|
|
"key": "b",
|
|
"label": "B",
|
|
"direction": "input",
|
|
"dataType": "float",
|
|
"accepts": [
|
|
"float",
|
|
"any"
|
|
],
|
|
"maxIncomingLinks": 1,
|
|
"visible": true,
|
|
"defaultValue": {
|
|
"kind": "number",
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "math:value",
|
|
"key": "value",
|
|
"label": "Value",
|
|
"direction": "output",
|
|
"dataType": "float",
|
|
"accepts": [],
|
|
"maxIncomingLinks": 0,
|
|
"visible": true
|
|
}
|
|
],
|
|
"muted": false,
|
|
"collapsed": false,
|
|
"extensions": {}
|
|
},
|
|
{
|
|
"id": "value",
|
|
"typeId": "fxnode.shader.value",
|
|
"typeVersion": 1,
|
|
"known": true,
|
|
"position": {
|
|
"x": -500,
|
|
"y": 200
|
|
},
|
|
"size": {
|
|
"x": 151,
|
|
"y": 100
|
|
},
|
|
"label": "Value",
|
|
"parameters": {
|
|
"value": {
|
|
"kind": "number",
|
|
"value": 0
|
|
}
|
|
},
|
|
"sockets": [
|
|
{
|
|
"id": "value:value",
|
|
"key": "value",
|
|
"label": "Value",
|
|
"direction": "output",
|
|
"dataType": "float",
|
|
"accepts": [],
|
|
"maxIncomingLinks": 0,
|
|
"visible": true
|
|
}
|
|
],
|
|
"muted": false,
|
|
"collapsed": false,
|
|
"extensions": {}
|
|
},
|
|
{
|
|
"id": "vector",
|
|
"typeId": "fxnode.shader.vector-math",
|
|
"typeVersion": 1,
|
|
"known": true,
|
|
"position": {
|
|
"x": 20,
|
|
"y": 200
|
|
},
|
|
"size": {
|
|
"x": 340,
|
|
"y": 148
|
|
},
|
|
"label": "Vector Math",
|
|
"parameters": {
|
|
"operation": {
|
|
"kind": "string",
|
|
"value": "add"
|
|
}
|
|
},
|
|
"sockets": [
|
|
{
|
|
"id": "vector:a",
|
|
"key": "a",
|
|
"label": "A",
|
|
"direction": "input",
|
|
"dataType": "vector",
|
|
"accepts": [
|
|
"vector",
|
|
"any"
|
|
],
|
|
"maxIncomingLinks": 1,
|
|
"visible": true,
|
|
"defaultValue": {
|
|
"kind": "vector",
|
|
"value": [
|
|
0,
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "vector:b",
|
|
"key": "b",
|
|
"label": "B",
|
|
"direction": "input",
|
|
"dataType": "vector",
|
|
"accepts": [
|
|
"vector",
|
|
"any"
|
|
],
|
|
"maxIncomingLinks": 1,
|
|
"visible": true,
|
|
"defaultValue": {
|
|
"kind": "vector",
|
|
"value": [
|
|
0,
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "vector:vector",
|
|
"key": "vector",
|
|
"label": "Vector",
|
|
"direction": "output",
|
|
"dataType": "vector",
|
|
"accepts": [],
|
|
"maxIncomingLinks": 0,
|
|
"visible": true
|
|
},
|
|
{
|
|
"id": "vector:value",
|
|
"key": "value",
|
|
"label": "Value",
|
|
"direction": "output",
|
|
"dataType": "float",
|
|
"accepts": [],
|
|
"maxIncomingLinks": 0,
|
|
"visible": true
|
|
}
|
|
],
|
|
"muted": false,
|
|
"collapsed": false,
|
|
"extensions": {}
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"id": "value-math",
|
|
"fromNodeId": "value",
|
|
"fromSocketId": "value:value",
|
|
"toNodeId": "math",
|
|
"toSocketId": "math:a",
|
|
"muted": false,
|
|
"extensions": {}
|
|
}
|
|
],
|
|
"metadata": {}
|
|
}
|