Move uniform changes to setUniforms-method.