getPropertyName method
dynamic
getPropertyName(
- dynamic node, [
- dynamic shaderStage
override
Implementation
getPropertyName(node, [shaderStage]) {
shaderStage = shaderStage ?? this.shaderStage;
if (node is NodeVary) {
if (shaderStage == 'vertex') {
return "NodeVarys.${node.name}";
}
} else if (node is NodeUniform) {
var name = node.name;
var type = node.type;
if (type == 'texture') {
return name;
} else if (type == 'buffer') {
return "NodeBuffer.${name}";
} else {
return "NodeUniforms.${name}";
}
}
return super.getPropertyName(node);
}