How do I add a geometry node to the graph and have it display. I tried
add('node', geometry) on the node selector pointing to a parent node,
but the geometry did not show up.
Kamil
Tanks
var child = {
type: "geometry",
primitive:"triangles",
positions : [-5,0,0, 0,0,0, -5,5,0],
normals: [1,1,1, 1,1,1, 1,1,1],
indices: [0,1,2]
}
scene.findNode('parent-id').add('node', child);
The parent can be a material node.