# Shape and Texture Rotation for Mesh and Shader Sampler

**URL:** <https://forum.babylonjs.com/t/shape-and-texture-rotation-for-mesh-and-shader-sampler/32524>\
**Category:** Tutorials and tips\
**Tags:** shader, thininstances\
**Created:** [July 27, 2022, 3:09am UTC](https://forum.babylonjs.com/t/shape-and-texture-rotation-for-mesh-and-shader-sampler/32524 "2022-07-27T03:09:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Butterwell](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/butterwell/32/9738_2.png) [@Butterwell](https://forum.babylonjs.com/u/Butterwell)\
**Post date:** [July 27, 2022, 3:09am UTC](https://forum.babylonjs.com/t/shape-and-texture-rotation-for-mesh-and-shader-sampler/32524/1 "2022-07-27T03:09:57Z")

</div>

In thin instances, draw a shape in a shader and show how to rotate and more the shape and texture in the shader and rotate and move the shape via the matrix.  
[https://playground.babylonjs.com/#V9ZICI#4](https://playground.babylonjs.com/#V9ZICI#4)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 27, 2022, 3:11pm UTC](https://forum.babylonjs.com/t/shape-and-texture-rotation-for-mesh-and-shader-sampler/32524/2 "2022-07-27T15:11:29Z")

</div>

nicely done !!! this is pretty as well 🙂 hope it can help others, thanks
