<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNLight/castsShadow",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNLight(py)castsShadow"
  },
  "title" : "castsShadow"
}
-->

# castsShadow

A Boolean value that determines whether the light casts shadows.

```
var castsShadow: Bool { get set }
```

## Discussion

Geometries illuminated by the light cast shadows only if the value of this property is <doc://com.apple.documentation/documentation/Swift/true> and the [`type`](/documentation/SceneKit/SCNLight/type) property of the light is [`spot`](/documentation/SceneKit/SCNLight/LightType/spot) or [`directional`](/documentation/SceneKit/SCNLight/LightType/directional). The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)