fixed wrong reference check

This commit is contained in:
Remy Van Doosselaer 2019-04-09 19:24:10 +02:00
parent 1a1348983b
commit 9a80f013fc

View File

@ -373,7 +373,7 @@ public class Uniform extends ShaderVariable {
//feed this.value with the collected values. //feed this.value with the collected values.
if (this.value instanceof ColorRGBA) { if (this.value instanceof ColorRGBA) {
((ColorRGBA) this.value).set(vec4.x, vec4.y, vec4.z, vec4.w); ((ColorRGBA) this.value).set(vec4.x, vec4.y, vec4.z, vec4.w);
} else if (value instanceof Vector4f) { } else if (this.value instanceof Vector4f) {
((Vector4f) this.value).set(vec4); ((Vector4f) this.value).set(vec4);
} else { } else {
((Quaternion) this.value).set(vec4.x, vec4.y, vec4.z, vec4.w); ((Quaternion) this.value).set(vec4.x, vec4.y, vec4.z, vec4.w);