Sets the value of the uniform @idx.
The uniform must be of bool type.
index of the uniform
value to set the uniform to