get method

dynamic get(
  1. dynamic object, [
  2. dynamic lightNode
])

Implementation

get(object, [lightNode]) {
  var nodeBuilder = this.builders.get(object);

  if (nodeBuilder == undefined) {
    nodeBuilder =
        new WebGPUNodeBuilder(object, this.renderer, lightNode).build();

    this.builders.set(object, nodeBuilder);
  }

  return nodeBuilder;
}