getUniformFromNode method
dynamic
getUniformFromNode(
- dynamic node,
- dynamic shaderStage,
- dynamic type
Implementation
getUniformFromNode(node, shaderStage, type) {
Map nodeData = this.getDataFromNode(node, shaderStage);
var nodeUniform = nodeData["uniform"];
if (nodeUniform == undefined) {
var index = this.uniforms["index"]++;
nodeUniform = new NodeUniform('nodeUniform${index}', type, node);
this.uniforms[shaderStage].add(nodeUniform);
nodeData["uniform"] = nodeUniform;
}
return nodeUniform;
}