Argument Description handle The handle of the shader constant to set. array A previously initialised array of floating point values.
With this function you can set a shader constant to hold an array of values. You must previously have gotten the "handle" of the constant using the function shader_get_uniform, and you will have to have previously initialised the array.NOTE: All uniforms must be set after calling the function shader_set(), and before calling shader_reset.IMPORTANT! This function is not available with the Trial Licence of the product.
tex_array = 0.5;
tex_array = 0.1;
tex_array = 0.25;
shader_params = shader_get_uniform(shader_glass, "u_vParams");
The above code will get the handle of the shader constant "u_vParams" then set that constant to the given array.