init(name:float:)
Initializes a new uniform object that holds a vector of four floating-point numbers.
Declaration
init(name: String, float value: GLKVector4)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 vector for the uniform variable.
Return Value
An initialized uniform object whose type is set to SKUniformType.floatVector4.