Setting new Texture to material


if I have set the texture to a material and I want to change it, is it enough to reset the texture, i.e. overwriting the old texture?

What exactly is R,S and T axis and how should these parameters effect a simple plane texture on a simple plane quad? I can not see any effect.

Thanks a lot.



Just use material.setTexture(…)

The R,S,T parameters are the texture coordinate axes. They are used for the wrapmode parameter so if you want your texture to repeat along specific axes you would use it. Usually you don’t need to worry about it though.