<!--
{
  "availability" : [
    "iOS: 5.0.0 - 12.0.0",
    "iPadOS: 5.0.0 - 12.0.0",
    "macOS: 10.8.0 - 10.14.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKEffectPropertyLight/spotCutoff",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GLKEffectPropertyLight(py)spotCutoff"
  },
  "title" : "spotCutoff"
}
-->

# spotCutoff

The angle in degrees where the spotlight is cut off.

```
var spotCutoff: GLfloat { get set }
```

## Discussion

If the `w` component of the position is not equal to `0.0`, the value of the [`spotCutoff`](/documentation/GLKit/GLKEffectPropertyLight/spotCutoff) property determines whether the light is a point light or a spotlight. A cutoff value of `180.0` indicates that the light is a point light; for a point light, the [`spotDirection`](/documentation/GLKit/GLKEffectPropertyLight/spotDirection) and [`spotExponent`](/documentation/GLKit/GLKEffectPropertyLight/spotExponent) properties are ignored. Otherwise, the [`spotCutoff`](/documentation/GLKit/GLKEffectPropertyLight/spotCutoff) property represents the maximum angle at which the light contributes lighting to the scene. The angle is measured between the vector provided by the [`spotDirection`](/documentation/GLKit/GLKEffectPropertyLight/spotDirection) property and a vector drawn from the light’s position to the point being lit. If the angle exceeds this amount, then the light contributes no light to the scene.

The default value is `180.0`.

---

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)