git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

nodes/normal.json (1.1K)

 1 {
 2  "name": "Normal",
 3  "type": "normal",
 4  "inputs": 1,
 5  "outputs": 1,
 6  "params": [
 7   { "name": "input", "label": "Input", "type": "node", "default": "", "description": "The node whose normals are computed from its faces." },
 8   { "name": "class", "label": "Class", "type": "choice:Points,Vertices", "default": "Points", "description": "Points writes one averaged normal per point. Vertices writes one per face corner, so edges sharper than the Cusp Angle stay hard." },
 9   { "name": "attribute", "label": "Attribute", "type": "attribute", "default": "N", "description": "Name of the attribute the normals are written to. Empty leaves the geometry unchanged." },
10   { "name": "cusp_angle", "label": "Cusp Angle", "type": "slider", "default": "60", "min": 0.0, "max": 180.0, "step": 1.0, "show_when": "class == Vertices", "description": "In degrees: faces meeting at less than this angle are averaged and read smooth, sharper ones keep their own normal. 180 is fully smooth." },
11   { "name": "flip", "label": "Flip", "type": "choice:false,true", "default": "false", "description": "Reverse the computed normals so they point the other way." }
12  ]
13 }