Hi, I’m trying to use this code in P4 to rotate a Texture in a PShape
void adaptTexture() {
uvtr.reset();
uvtr.translate(0.5, 0.5);
uvtr.rotate(rotText);
uvtr.translate(-0.5, -0.5);
uvtr.mult(memUVA, textUVA);
uvtr.mult(memUVB, textUVB);
sh.setTextureUV(1, textUVA.x, textUVA.y);
sh.setTextureUV(2, textUVB.x, textUVB.y);
}
Run perfect in P3.5.4 but not in P4.0b8.
There is something to do or it is a bug to signal on github ?