summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2016-01-13 22:06:48 +0000
committerSaracen <SaracenOne@gmail.com>2016-01-13 22:09:07 +0000
commit1cc5ccba1b7997b6a296b53870d46d280f396095 (patch)
treec00f985525fc5dab75fd99d5d3bff6a19cde22c5
parent0d180b8719696cc12be92683dc4cf99872143567 (diff)
Allows vec4 shader uniforms to be set by quaternion variant type.
-rw-r--r--drivers/gles2/shader_gles2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gles2/shader_gles2.h b/drivers/gles2/shader_gles2.h
index 51520cc9da..68ae8af63f 100644
--- a/drivers/gles2/shader_gles2.h
+++ b/drivers/gles2/shader_gles2.h
@@ -205,6 +205,11 @@ private:
Plane val=p_value;
glUniform4f( p_uniform, val.normal.x,val.normal.y,val.normal.z,val.d );
} break;
+ case Variant::QUAT: {
+
+ Quat val=p_value;
+ glUniform4f( p_uniform, val.x,val.y,val.z,val.w );
+ } break;
case Variant::MATRIX32: {