final PassNodeState pass2 = new PassNodeState();
pass2.setPassState(ts2);
pass2.setPassState(as);
// Add the passes to the pass node
final PassNode pNode = new PassNode();
pNode.addPass(pass1);
pNode.addPass(pass2);
// Attach the box to the pass node.
pNode.attachChild(box);
// Attach the pass node to the scenegraph root.
_root.attachChild(pNode);
}