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

# position

The position of the light in world coordinates.

## Declaration

```swift
var position: GLKVector4 { get set }
```

## Discussion

Discussion If the w component of the position is 0.0, the light is calculated using the directional light formula. The x, y, and z components of the vector specify the direction the light shines. The light is assumed to be infinitely far away; attenuation and spotlight properties are ignored. If the w component of the position is a non-zero value, the coordinates specify the position of the light in homogenous coordinates, and the light is either calculated as a point light or a spotlight, depending on the value of the spotCutoff property. The default value is [0.0, 0.0, 1.0, 0.0].

## See Also

### Configuring Common Lighting Properties

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