set_uniform_value


Description:

public void set_uniform_value (string name, Value value)

Sets value as the payload for the uniform name inside the shader effect

The Type of the value must be one of: INT, for a single integer value; FLOAT, for a single floating point value; CLUTTER_TYPE_SHADER_INT, for an array of integer values; CLUTTER_TYPE_SHADER_FLOAT, for an array of floating point values; and CLUTTER_TYPE_SHADER_MATRIX , for a matrix of floating point values. It also accepts DOUBLE for compatibility with other languages than C.

Parameters:

this

a ShaderEffect

name

the name of the uniform to set

value

a Value with the value of the uniform to set




2022 vala-language.org