Contents

init(name:float:)

Creates and initializes a new uniform object that holds a vector of three floating-point numbers.

Declaration

init(name: String, float value: GLKVector3)

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.floatVector3.

See Also

Creating and Initializing Uniform Objects