# Trying to disable recieving shadows and casting shadows to one object

**URL:** <https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [May 26, 2023, 11:10pm UTC](https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079 "2023-05-26T23:10:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Avelar1](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/victor_avelar1/32/33909_2.png) [@Victor\_Avelar1](https://discourse.threejs.org/u/Victor_Avelar1)\
**Post date:** [May 26, 2023, 11:10pm UTC](https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079/1 "2023-05-26T23:10:35Z")

</div>

So i have been trying to disable shadows entierly to a object in three js the only thing is that the shadows still render darkness on sides.

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [May 26, 2023, 11:58pm UTC](https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079/2 "2023-05-26T23:58:12Z")

</div>

Could you share a screenshot / code? Kinda hard to help with the amount of given information 🥲

---

<div class="post-metadata">

**Author:** ![Victor\_Avelar1](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/victor_avelar1/32/33909_2.png) [@Victor\_Avelar1](https://discourse.threejs.org/u/Victor_Avelar1)\
**Post date:** [May 27, 2023, 12:05am UTC](https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079/3 "2023-05-27T00:05:16Z")

</div>

I was in a hurry writing this, but for more context; I was trying to make an object not receive shadows but it stills renders it even though i put the code

```javascript
OBJECT.receiveShadows = false

```

But what im trying to accomplish is to make a skybox and skyboxes do not have darkness in different sides, or shadows in different sides.

i could send you a screenshot if you dont understand

---

<div class="post-metadata">

**Author:** ![Victor\_Avelar1](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/victor_avelar1/32/33909_2.png) [@Victor\_Avelar1](https://discourse.threejs.org/u/Victor_Avelar1)\
**Post date:** [May 27, 2023, 12:29am UTC](https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079/4 "2023-05-27T00:29:35Z")

</div>

ah I’ll give you a screenshot to explain

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/4/1/41c853639923985da9f73c895a5a45874d02e3fe.png)  
this is inside a cube ( its the skybox ) it still has shadows and i just want the shadows to be disabled and just be all white like the color i gave it but ill add textures after its fixed.

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [May 27, 2023, 8:10am UTC](https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079/5 "2023-05-27T08:10:35Z")

</div>

Instead of plural:

```javascript
OBJECT.receiveShadows = false

```

try singlular:

```javascript
OBJECT.receiveShadow = false

```

Reference: [Object3D.receiveShadow](https://threejs.org/docs/index.html?q=mesh#api/en/core/Object3D.receiveShadow)

However, `receiveShadow` is `fals`e by default, so you need to disable it only if you have already enabled it. If it does not work, then the dark area is not a shadow, but something else, like wrong normals or lack of light from required direction.

> i just want … be all white like the color i gave it but ill add textures after its fixed

Have you tried `MeshBasicMaterial`?

---

<div class="post-metadata">

**Author:** ![Victor\_Avelar1](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/victor_avelar1/32/33909_2.png) [@Victor\_Avelar1](https://discourse.threejs.org/u/Victor_Avelar1)\
**Post date:** [May 28, 2023, 2:59am UTC](https://discourse.threejs.org/t/trying-to-disable-recieving-shadows-and-casting-shadows-to-one-object/52079/6 "2023-05-28T02:59:05Z")

</div>

oh i just typed receive shadows without copying and pasting it which i wasnt sure about but that isn’t the problem, and also MeshBasicMaterial worked thanks!
