---
title: enabled
framework: GLKit
role: symbol
role_heading: Instance Property
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: glkit/glkeffectpropertylight/enabled
---

# enabled

A Boolean value that indicates whether calculations should be performed on this light.

## Declaration

```swift
var enabled: GLboolean { get set }
```

## Discussion

Discussion If the value of enabled is GL_TRUE, then lighting calculations are performed for this light. If the value is GL_FALSE, this light is skipped when computing the fragment color.

## See Also

### Configuring Common Lighting Properties

- [position](glkit/glkeffectpropertylight/position.md)
- [transform](glkit/glkeffectpropertylight/transform.md)
