update method

dynamic update(
  1. dynamic object,
  2. dynamic camera, [
  3. dynamic lightNode
])

Implementation

update(object, camera, [lightNode]) {
  var renderer = this.renderer;
  var material = object.material;

  var nodeBuilder = this.get(object, lightNode);
  var nodeFrame = this.nodeFrame;

  nodeFrame.material = material;
  nodeFrame.camera = camera;
  nodeFrame.object = object;
  nodeFrame.renderer = renderer;

  for (var node in nodeBuilder.updateNodes) {
    nodeFrame.updateNode(node);
  }
}