graphic design tool
git clone https://git.lucas.co/cce-designer.git
nodes/diffuse.json (1.9K)
1 {
2 "name": "Diffuse",
3 "type": "diffuse",
4 "inputs": 1,
5 "outputs": 1,
6 "params": [
7 {
8 "name": "input",
9 "label": "Input",
10 "type": "node",
11 "default": "",
12 "description": "The surface whose point attribute spreads out over it."
13 },
14 {
15 "name": "attribute",
16 "label": "Attribute",
17 "type": "attribute",
18 "default": "mass",
19 "description": "The point attribute that diffuses; must already exist. Floats, integers and vectors, each component on its own; integers stay whole."
20 },
21 {
22 "name": "rate",
23 "label": "Rate",
24 "type": "float",
25 "default": "0.01",
26 "description": "How fast the value spreads, in square world units per frame: a spike widens by about the square root of four times Rate each frame. Measured over the surface, so it does not change when the mesh is retessellated.",
27 "group": "rate"
28 },
29 {
30 "name": "rate_by",
31 "label": "Rate By",
32 "type": "attribute",
33 "default": "",
34 "description": "A point attribute that scales Rate where it lies, so the value spreads faster in some places than in others. Empty spreads it evenly; a name that is not an attribute is an error.",
35 "group": "rate"
36 },
37 {
38 "name": "per_frame",
39 "label": "Per Frame",
40 "type": "toggle",
41 "default": "true",
42 "description": "Inside a simulation, makes Rate a rate per frame, so the substep count does not change how far a frame spreads. Off spreads a whole frame's worth every substep.",
43 "group": "rate"
44 },
45 {
46 "name": "group",
47 "label": "Group",
48 "type": "group",
49 "default": "",
50 "description": "Only points in this group change. Points outside it hold their values and feed or drain the ones beside them, like a fixed temperature at the edge of a plate. Empty changes every point.",
51 "group": "where"
52 }
53 ]
54 }