Instance Method

uniformNamed:

Returns the uniform object corresponding to a particular uniform variable.

Declaration

- (SKUniform *)uniformNamed:(NSString *)name;

Parameters

name

The name of the uniform to search for.

Return Value

The uniform object corresponding to the name, or nil if that uniform cannot be found.

See Also

Providing Uniform Data to a Shader

- addUniform:

Adds a uniform to the shader.

- removeUniformNamed:

Removes a uniform from the shader.

uniforms

The list of uniforms associated with the shader.