You will need to enable lighting on the object:
Code:
node.enable(viz.LIGHTING)
However, if you are creating the polygons using On-The-Fly objects you will need to specify per vertex normals for the lighting to look correct. This means before each
viz.vertex call you will need to specify the normal vector of that vertex using the
viz.normal command.