# Material mapping texture rotation does not take effect

**URL:** <https://forum.babylonjs.com/t/material-mapping-texture-rotation-does-not-take-effect/48118>\
**Category:** Questions\
**Tags:** material\
**Created:** [February 18, 2024, 5:54am UTC](https://forum.babylonjs.com/t/material-mapping-texture-rotation-does-not-take-effect/48118 "2024-02-18T05:54:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baby9527](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/baby9527/32/42336_2.png) [@baby9527](https://forum.babylonjs.com/u/baby9527)\
**Post date:** [February 18, 2024, 5:54am UTC](https://forum.babylonjs.com/t/material-mapping-texture-rotation-does-not-take-effect/48118/1 "2024-02-18T05:54:31Z")

</div>

Good evening everyone, I need to rotate the texture of the model by 38 degrees. Why doesn’t it work? I think the official usage is also written in this way

The code is as follows:

```
   BABYLON.SceneLoader.ImportMesh('', "https://hyhh-fs.oss-cn-beijing.aliyuncs.com/model/", "ae23df53131146eba156a6886aee48f6.glb", scene, (meshes) => {
    var stdMaterial = new BABYLON.StandardMaterial("stdMaterial", scene);
    stdMaterial.diffuseTexture = new BABYLON.Texture("https://hyhh-fs.oss-cn-beijing.aliyuncs.com/model/d6cd3bb83f874c7a848b6c080aec41d4.jpeg", scene, false, false)
    var rotationAngle = BABYLON.Tools.ToRadians(38);
    stdMaterial.diffuseColor = new BABYLON.Color4(0.08509803, 1, 0, 1);
    stdMaterial.diffuseTexture.uvTransform = new BABYLON.Vector4(1, 1, rotationAngle, 0);
    stdMaterial.transparencyMode = BABYLON.Material.MATERIAL_OPAQUE;
    meshes[1].material = stdMaterial
    meshes[1].useVertexColors = false;
    scene.createDefaultCamera(true, true, true);
}, undefined, (error) => {
    console.log("error=", error);
});

```

 ![Snipaste_2024-02-18_13-56-24](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/0/70a10839369ccdf01fac520aebd3139d5fc424e4.png)

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [February 18, 2024, 6:28am UTC](https://forum.babylonjs.com/t/material-mapping-texture-rotation-does-not-take-effect/48118/2 "2024-02-18T06:28:35Z")

</div>

> [@baby9527](#):
>
> ```auto
> stdMaterial.diffuseTexture.uvTransform = new BABYLON.Vector4(1, 1, rotationAngle, 0);
> 
> ```

I didn’t find such property as uvTransform in Babylon API.  
I believe you may try to use texture `wAng` property.  
Example - [Babylon.js Playground](https://playground.babylonjs.com/#B5DP25)

---

<div class="post-metadata">

**Author:** ![baby9527](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/baby9527/32/42336_2.png) [@baby9527](https://forum.babylonjs.com/u/baby9527)\
**Post date:** [February 18, 2024, 6:35am UTC](https://forum.babylonjs.com/t/material-mapping-texture-rotation-does-not-take-effect/48118/3 "2024-02-18T06:35:27Z")

</div>

Thank you, I’ll give it a try
