Class

MDLTextureFilter

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

Declaration

@interface MDLTextureFilter : NSObject

Overview

A texture filter, together with a MDLTexture object and transform information, form a MDLTextureSampler object, which describes a texture and its rendering parameters for use in rendering one aspect of a MDLMaterial object’s surface appearance.

Topics

Managing Texture Coordinate Wrap Modes

sWrapMode

The coordinate wrapping mode for texture t-coordinates.

tWrapMode

The coordinate wrapping mode for texture t-coordinates.

rWrapMode

The coordinate wrapping mode for texture r-coordinates.

Managing Texture Filter Modes

minFilter

The filter mode for rendering textures at sizes smaller than that of the original image.

magFilter

The filter mode for rendering textures at sizes larger than that of the original image.

mipFilter

The filter mode for rendering textures using mipmapping.

Constants

MDLMaterialTextureWrapMode

Modes for sampling textures at coordinates outside the texture bounds, used by the sWrapMode, tWrapMode, and rWrapMode properties.

MDLMaterialTextureFilterMode

Modes for sampling textures at coordinates between texels, used by the minFilter and magFilter properties.

MDLMaterialMipMapFilterMode

Modes for sampling textures at sizes between mipmap levels, used by the mipFilter property.

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.

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.

MDLTextureSampler

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