I don’t think you will be able to apply this 1:1 to three. You could ask for the gl context from the renderer and try to apply these yourself (say in onBeforeRender perhaps). Otherwise, the texture you set the transform on may or may not apply it, depending on what texture it is. It’s all somewhat confusing, but depending on the material, and which slot you put the texture in (diffuse, or specular for example) one transform will be honored, and the other wont.
Hi marquizzo, I know that sample. You change the geometry so the UV coordinates. If you look at my OpenGL code here above, my calculation includes the object size too therefore its ratio too. So it’s something similar to yours. Anyway, I think there should be a shorter way to do it without modifying the UV.
I just need to rotate and scale the texture matrix sequentially as I am used to do on my OpenGL app. But on Threejs the transformation of the texture matrix has its own sequence, that I don’t know. I even tried to change the sequence of my functions as from