* @param size
* the number of components per entry (must be 1, 2, 3, or 4)
*/
public void setUniform(final String name, final FloatBuffer value, final int size) {
assert (size >= 1 && size <= 4) : "Size must be 1, 2, 3 or 4";
final ShaderVariableFloatArray shaderUniform = getShaderUniform(name, ShaderVariableFloatArray.class);
shaderUniform.value = value;
shaderUniform.size = size;
setNeedsRefresh(true);
}