init(name:texture:)
Initializes a new uniform object that holds a reference to a texture.
Declaration
init(name: String, texture: SKTexture?)Parameters
- name:
The name used to identify the uniform variable; you use this name inside your shader to read the uniform variable’s value.
- texture:
The initial texture to use for the uniform variable.
Return Value
An initialized uniform object whose type is set to SKUniformType.texture.