# How to add shadows in case of ShaderMaterial usage

**URL:** <https://discourse.threejs.org/t/how-to-add-shadows-in-case-of-shadermaterial-usage/82723>\
**Category:** Questions\
**Tags:** shaders\
**Created:** [May 17, 2025, 1:55pm UTC](https://discourse.threejs.org/t/how-to-add-shadows-in-case-of-shadermaterial-usage/82723 "2025-05-17T13:55:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Tina\_Koval](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/tina_koval/32/54758_2.png) [@Tina\_Koval](https://discourse.threejs.org/u/Tina_Koval)\
**Post date:** [May 20, 2025, 7:50pm UTC](https://discourse.threejs.org/t/how-to-add-shadows-in-case-of-shadermaterial-usage/82723/4 "2025-05-20T19:50:38Z")

</div>

> [@Function to extend Materials](https://discourse.threejs.org/t/function-to-extend-materials/7882/1):
>
> `extendMaterial`

Can you show me how I can import this plugin to the project?

---

_[View the full topic](https://discourse.threejs.org/t/how-to-add-shadows-in-case-of-shadermaterial-usage/82723)._
