init(source:uniforms:)
Initializes a new shader object using the specified source and uniform data.
Declaration
init(source: String, uniforms: [SKUniform])Parameters
- source:
A string that holds the initial source for the shader.
- uniforms:
A list of uniforms to add to the shader object.
Return Value
An initialized shader object.