# Rotate() a Texture in a PShape don't work anymore in P4

**URL:** https://discourse.processing.org/t/rotate-a-texture-in-a-pshape-dont-work-anymore-in-p4/36941
**Category:** Coding Questions
**Created:** [May 18, 2022, 12:45pm UTC](https://discourse.processing.org/t/rotate-a-texture-in-a-pshape-dont-work-anymore-in-p4/36941 "2022-05-18T12:45:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matheplica](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/matheplica/32/21035_2.png) [@matheplica](https://discourse.processing.org/u/matheplica)
#### Post date: [May 18, 2022, 12:45pm UTC](https://discourse.processing.org/t/rotate-a-texture-in-a-pshape-dont-work-anymore-in-p4/36941/1 "2022-05-18T12:45:07Z")

</div>

Hi, I’m trying to use this code in P4 to rotate a Texture in a PShape

```auto
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 ?
