Contents

normalizedCoordinates

A Boolean value that indicates whether texture coordinates are normalized to the range [0.0, 1.0].

Declaration

var normalizedCoordinates: Bool { get set }

Discussion

If true, texture coordinates are from 0.0 to 1.0. If false, texture coordinates are from 0 to width for horizontal coordinates and 0 to height for vertical coordinates. The default value is true.

Non-normalized texture coordinates should only be used with 1D and 2D textures with the following conditions; otherwise, the results of sampling are undefined.