Hello I cannot seem to figure out how to pass a texture I generate at runtime to a shader. I am trying to pass it with the “TU_CUSTOM1” texture unit. But the program crashes every time I try to add it with
Looking at how SetTexture is implemented, the internal texture array for storing the material’s textures needs to be increased but I don’t see any function for increasing the number of textures. There must be something that I am missing here.
Thanks in advance!