Shader.setParameter

Change a 4-components vector parameter of the shader.

Parameters

name
Type: const(char)[]

The name of the variable to change in the shader. The corresponding parameter in the shader must be a 4x1 vector (vec4 GLSL type).

x
Type: float

First component of the value to assign

y
Type: float

Second component of the value to assign

z
Type: float

Third component of the value to assign

w
Type: float

Fourth component of the value to assign

Meta