Class

MDLCheckerboardTexture

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

Declaration

@interface MDLCheckerboardTexture : MDLTexture

Overview

Like other procedural MDLTexture subclasses, the MDLCheckerboardTexture class generates texel data only when that data is first referenced, and then caches it for future use.

Topics

Creating a Checkerboard Texture

- initWithDivisions:name:dimensions:channelCount:channelEncoding:color1:color2:

Initializes a checkerboard texture with the specified colors and other properties.

Configuring the Checkerboard Pattern

color1

The color for half of the squares in the checkerboard pattern.

color2

The color for the other half of the squares in the checkerboard pattern.

divisions

The number of squares along each dimension in the checkerboard pattern.

Relationships

Inherits From

See Also

Textures

MDLTexture

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

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.

MDLSkyCubeTexture

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

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.