Instance Property

uniforms

The list of uniforms associated with the shader.

Declaration

@property(copy) NSArray<SKUniform *> *uniforms;

Discussion

This property is not read-only, so you can also use it to provide all of the uniforms in a single operation. Each of the uniforms should be uniquely named.

See Also

Providing Uniform Data to a Shader

- addUniform:

Adds a uniform to the shader.

- removeUniformNamed:

Removes a uniform from the shader.

- uniformNamed:

Returns the uniform object corresponding to a particular uniform variable.