Class

MDLSkyCubeTexture

A generator of texel data that creates cube textures using a physically realistic simulation of the sunlit sky.

Declaration

@interface MDLSkyCubeTexture : MDLTexture

Overview

The sky textures generated by this class can can be useful as environment maps or light probes in rendering. Like other procedural MDLTexture subclasses, the MDLSkyCubeTexture class generates texel data only when that data is first referenced, and then caches it for future use.

Topics

Creating a Sky Cube Texture

Working with Sky Simulation Parameters

turbidity

The cloudiness or haziness of the simulated sky.

sunElevation

The sun’s position in the simulated sky.

upperAtmosphereScattering

A factor that influences the color of the simulated sky.

groundAlbedo

A factor that influences the clarity of the simulated sky.

groundColor

The color of the simulated ground.

horizonElevation

The angle, in radians relative to center, below which to render the ground color.

Working with Tone Mapping Parameters

gamma

The amount of gamma correction to apply during tone mapping.

exposure

The amount of exposure compensation to apply during tone mapping.

brightness

The amount of brightness enhancement to apply during tone mapping.

contrast

The amount of contrast enhancement to apply during tone mapping.

saturation

The amount of saturation enhancement to apply during tone mapping.

highDynamicRangeCompression

Two parameters that determine the brightness compression curve for colors in the texture image.

Updating Texture Data

- updateTexture

Generates new texel data matching the current sky parameters.

Instance Properties

Relationships

Inherits From

See Also

Textures

MDLTexture

A source of texel data to be used in rendering material surface appearances.

MDLCheckerboardTexture

A generator of texel data that creates a checkerboard pattern with two specified colors.

MDLColorSwatchTexture

A generator of texel data that creates a gradient between two specified colors.

MDLNoiseTexture

A generator of texel data that creates a field of random noise.

MDLNormalMapTexture

A generator of texel data that computes a normal map from a supplied texture.

MDLURLTexture

A lightweight reference to a URL from which to load texture data.

MDLTextureFilter

A description of filtering modes for a renderer to use when sampling from a texture.

MDLTextureSampler

An object that pairs a source of texture data with sampling parameters to be used in rendering the texture.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software