Using TSL, let’s say I’ve replaced the outputNode property of a MeshLambertNodeMaterial to set the output’s opacity to 0.5, like this:
const material = new MeshLambertNodeMaterial();
const originalOutputNode = material.outputNode;
material.outputNode = Fn(() => {
return vec4(
originalOutputNode.r,
originalOutputNode.g,
originalOutputNode.b,
0.5
);
})();
Will material.outputNode be redundantly re-calculated for each access of r, g, and b?
Or is material.outputNode already a “pre-calculated” vec4?
Note that I prefer it NOT to be “pre-calculated”, as it gives me freedom when to choose when it should be calculated.
I am just curious of what the node actually is internally.
