# Spotlight on texture to highlight specific part with GLSL shaders

**URL:** <https://discourse.threejs.org/t/spotlight-on-texture-to-highlight-specific-part-with-glsl-shaders/70793>\
**Category:** Questions\
**Tags:** spotlight, materials, glsl, textures, shaders\
**Created:** [September 17, 2024, 4:16am UTC](https://discourse.threejs.org/t/spotlight-on-texture-to-highlight-specific-part-with-glsl-shaders/70793 "2024-09-17T04:16:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vatsal\_Pandya](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@Vatsal\_Pandya](https://discourse.threejs.org/u/Vatsal_Pandya)\
**Post date:** [September 17, 2024, 4:16am UTC](https://discourse.threejs.org/t/spotlight-on-texture-to-highlight-specific-part-with-glsl-shaders/70793/1 "2024-09-17T04:16:02Z")

</div>

I am trying to highlight the pattern of the image texture when spotlight moves on that part. and main texture will be visible as background. spotlight will be moving continuously over the mesh surface.

currently when spotlight moves over the texture and it shows the bump image (pattern image) with black color as well. I am trying to achieve as it should highlight only pattern part of the image and show original main image as well in background.

live code link : [Glitch :･ﾟ✧](https://glitch.com/edit/#!/band-fixed-filament)

any help or guidance on this would be greatly appreciated.

current output :

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/0/d/0d7693c186b0839be812317a0d19630ce5264f1d.jpeg)

trying to achieve :

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/e/6/e667a1009c196bbd0ef4b97176191ef524bdc469.jpeg)

---

<div class="post-metadata">

**Author:** ![Vatsal\_Pandya](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@Vatsal\_Pandya](https://discourse.threejs.org/u/Vatsal_Pandya)\
**Post date:** [September 17, 2024, 4:36am UTC](https://discourse.threejs.org/t/spotlight-on-texture-to-highlight-specific-part-with-glsl-shaders/70793/2 "2024-09-17T04:36:32Z")

</div>

many thanks to @manthrax. solved now
