# Change only the part of the mesh that the mouse is hovering over

**URL:** <https://discourse.threejs.org/t/change-only-the-part-of-the-mesh-that-the-mouse-is-hovering-over/31196>\
**Category:** Questions\
**Tags:** textures, animation, geometry\
**Created:** [October 27, 2021, 10:42am UTC](https://discourse.threejs.org/t/change-only-the-part-of-the-mesh-that-the-mouse-is-hovering-over/31196 "2021-10-27T10:42:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdulsalamalmahdi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/abdulsalamalmahdi/32/18189_2.png) [@abdulsalamalmahdi](https://discourse.threejs.org/u/abdulsalamalmahdi)\
**Post date:** [October 27, 2021, 10:42am UTC](https://discourse.threejs.org/t/change-only-the-part-of-the-mesh-that-the-mouse-is-hovering-over/31196/1 "2021-10-27T10:42:35Z")

</div>

sorry for the unprofessional question, I am trying to create a text that when hovered over only the part that the mouse is over changes. and I have no Idea where to begin, any pointers would be appreciated.

---

<div class="post-metadata">

**Author:** ![llttle\_new\_pencil](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/llttle_new_pencil/32/3577_2.png) [@llttle\_new\_pencil](https://discourse.threejs.org/u/llttle_new_pencil)\
**Post date:** [October 28, 2021, 10:01am UTC](https://discourse.threejs.org/t/change-only-the-part-of-the-mesh-that-the-mouse-is-hovering-over/31196/2 "2021-10-28T10:01:29Z")

</div>

You have to change the shader of your text’s material. Pass you mouse position by uniform, and change the pixel fragment color who near mouse position
