Instance Property


A custom shader used to determine how particles are rendered.


@property(nonatomic, retain) SKShader *shader;


The default value is nil. If a shader is specified, then the shader is used to determine the output colors for any of the emitter’s particles.

See Also

Taking Full Control of Particle Drawing with a Shader

Getting Started with Particle Shaders

Provide custom shader code to alter a particle's look.


The values of each attribute associated with the node's attached shader.

- setValue:forAttributeNamed:

Sets an attribute value for an attached shader.

- valueForAttributeNamed:

Gets the value of a shader attribute.