The order in which textures are applied to rendered primitives.
SDKs
- iOS 5.0–12.0Deprecated
- macOS 10.8–10.14Deprecated
- tvOS 9.0–12.0Deprecated
Framework
- GLKit
Declaration
@property(nonatomic, copy) NSArray<GLKEffect Property Texture *> *textureOrder;
Discussion
The value of this property should be an array whose contents are all GLKEffect
objects provided by the effect. The order of these objects in the array determines the order in which the textures are applied in the shader. For example, to reverse the order that the textures are applied to a scene, your application would use the following code:
baseEffect.textureOrder = [NSArray arrayWithObjects: baseEffect.texture2d1, baseEffect.texture2d0, nil];
The default value is an array that executes the texture stages in increasing order, skipping any texture stages that are not enabled.