---
title: GLKSkyboxEffect
framework: GLKit
role: symbol
role_heading: Class
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: glkit/glkskyboxeffect
---

# GLKSkyboxEffect

A simple skybox visual effect for use in shader-based OpenGL rendering.

## Declaration

```swift
class GLKSkyboxEffect
```

## Overview

Overview The GLKSkyboxEffect provides a standard skybox effect for your application. Unlike the GLKBaseEffect class, the skybox does not require your application to configure and submit vertex data. Instead, it creates its own vertex data based on the configuration data you supply. At initialization time, your application first creates a compatible context and makes it current. Then, it creates new skybox effect, configures its properties, and calls its prepareToDraw() method. Binding the effect causes a shader to be compiled and bound to the current context. At rendering time, your application calls the effect’s prepareToDraw() method to prepare the effect and then calls its draw() method to draw the sky box.

## Topics

### Naming the Effect

- [label](glkit/glkskyboxeffect/label.md)

### Preparing the Effect for Rendering

- [prepareToDraw()](glkit/glkskyboxeffect/preparetodraw().md)

### Drawing the Skybox

- [draw()](glkit/glkskyboxeffect/draw().md)

### Configuring the Skybox

- [textureCubeMap](glkit/glkskyboxeffect/texturecubemap.md)
- [center](glkit/glkskyboxeffect/center.md)
- [xSize](glkit/glkskyboxeffect/xsize.md)
- [ySize](glkit/glkskyboxeffect/ysize.md)
- [zSize](glkit/glkskyboxeffect/zsize.md)

### Setting the Skybox Transform

- [transform](glkit/glkskyboxeffect/transform.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [GLKNamedEffect](glkit/glknamedeffect.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Shader-Based Rendering Effects

- [GLKNamedEffect](glkit/glknamedeffect.md)
- [GLKBaseEffect](glkit/glkbaseeffect.md)
- [GLKReflectionMapEffect](glkit/glkreflectionmapeffect.md)
