vec4 values are references. In your setter you're just storing a reference to the vec4 type passed in.