Modify a vertex normal
<node3d:onthefly>.setNormal( | |
index | |
[x,y,z] | |
mode = viz.ABS_LOCAL | # Positional argument |
) |
Normal modes | |
viz.ABS_LOCAL | Set the raw normal vector. |
viz.REL_LOCAL | Add the vector to the existing raw normal vector. |
viz.ABS_PARENT | Set the normal vector in the coordinate frame of the parent node. |
viz.REL_PARENT | Add the vector to the existing normal vector in the coordinate frame of the parent node. |
viz.ABS_GLOBAL | Set the normal vector in the global coordinate frame. |
viz.REL_GLOBAL | Add the vector to the existing normal vector in the global coordinate frame. |
Note: If you are frequently changing the normal vector of a vertex, then use the <node3d:onthefly>.dynamic command to speed up rendering.