init(name:float:)
Initializes a new uniform object that holds a 2 x 2 matrix of floating-point numbers.
Declaration
init(name: String, float value: GLKMatrix2)Parameters
- name:
The name used to identify the uniform variable; you use this name inside your shader to read the uniform variable’s value.
- value:
The initial matrix for the uniform variable.
Return Value
An initialized uniform object whose type is set to SKUniformType.floatMatrix2.