Initializes a noise texture that creates random directional noise.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
- Model I/O
A value that indicates how similar neighboring texels will be in the resulting texture. The value should be between
1. A value of
1generates a smooth surface.
nameproperty for the new texture object.
The texel dimensions (width and height) of the texture image.
The data format for each channel value per texel—for example, 8-bit integer or 32-bit floating point. For possible values, see
A new directional noise texture object.
Unlike a color noise texture, in which the RGBA channels are independently randomized, a directional noise texture treats each texel’s RGB channels together as the XYZ components of a random direction vector, and the A channel as a scalar for the vector’s direction.
This initializer does not generate texel data; the
MDLNoise class automatically generates data and caches it for reuse when you use one of the
MDLTexture methods listed in Accessing Texture Data.