# Why is there no \`PointLight.castShadow\` property?

**URL:** <https://discourse.threejs.org/t/why-is-there-no-pointlight-castshadow-property/45718>\
**Category:** Questions\
**Tags:** shadows, lights\
**Created:** [December 12, 2022, 8:59pm UTC](https://discourse.threejs.org/t/why-is-there-no-pointlight-castshadow-property/45718 "2022-12-12T20:59:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trusktr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/trusktr/32/13726_2.png) [@trusktr](https://discourse.threejs.org/u/trusktr)\
**Post date:** [December 12, 2022, 8:59pm UTC](https://discourse.threejs.org/t/why-is-there-no-pointlight-castshadow-property/45718/1 "2022-12-12T20:59:51Z")

</div>

There is not a `PointLight.castShadow` property, but there is a [`SpotLight.castShadow`](https://threejs.org/docs/index.html#api/en/lights/SpotLight.castShadow) property.

It seems like all lights that can cast shadows should have this same option to enable/disable shadow casting.

Why isn’t this the case?

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [December 12, 2022, 10:32pm UTC](https://discourse.threejs.org/t/why-is-there-no-pointlight-castshadow-property/45718/2 "2022-12-12T22:32:39Z")

</div>

Maybe it’s not in the docs, but that type of light has this property.  
For example: [three.js examples](https://threejs.org/examples/?q=pointlight#webgl_shadowmap_pointlight) , line 56 in the source code.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [December 14, 2022, 9:22am UTC](https://discourse.threejs.org/t/why-is-there-no-pointlight-castshadow-property/45718/3 "2022-12-14T09:22:09Z")

</div>

@marquizzo fixed the issue 👍.

> <https://github.com/mrdoob/three.js/pull/25136>
>
> \*\*Description\*\*
> PointLight.castShadow property was missing from the docs. I cop…ied the description from the SpotLight page, but with a link to PointLightShadow instead.
> 
> Related issue: This omission was pointed out by a user in the Discourse forum: https://discourse.threejs.org/t/why-is-there-no-pointlight-castshadow-property/45718

---

<div class="post-metadata">

**Author:** ![trusktr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/trusktr/32/13726_2.png) [@trusktr](https://discourse.threejs.org/u/trusktr)\
**Post date:** [December 15, 2022, 5:35am UTC](https://discourse.threejs.org/t/why-is-there-no-pointlight-castshadow-property/45718/4 "2022-12-15T05:35:22Z")

</div>

My bad also, I forgot castShadow comes from Object3D, shared with non-lights too (although I don’t think all objects can castShadow, so probably wouldn’t put it there myself).
