Hey all,
I have what I thought was going to be a simple task that has me really scratching my head. Basically what I have is node shader on a mesh whose visibility is set to 0. While it is still invisible I create a new texture and set the uScale and vScale of the new texture and apply it to the node material using nodeMaterial.attachedBlocks[5].texture = newTexture.
The problem I am having is that when I set the object to visible and render the frame the texture is visible but the uScale and vScale did not set. However after another frame to two everything corrects and looks fine.
Anyway, I am sure I am off here but it seems that the node shader has not completed updating with the new texture, particularly with the uScale and vScale before it actually renders. Is there perhaps a way to force the node shader to “pre-render” so to speak and check that it is ready before I render the first frame?