build method

dynamic build()

Implementation

build() {
  if (this.context["vertex"] != null && this.context["vertex"] is Node) {
    this.flowNodeFromShaderStage('vertex', this.context["vertex"]);
  }

  for (var shaderStage in shaderStages) {
    this.setShaderStage(shaderStage);

    var flowNodes = this.flowNodes[shaderStage];

    for (var node in flowNodes) {
      this.flowNode(node, shaderStage);
    }
  }

  this.setShaderStage(null);

  this.buildCode();

  return this;
}