summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-14 09:17:36 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-14 09:17:36 +0100
commit0860f3c196e6228f65ca5fee4c077b4509d77175 (patch)
tree29be8e91fd8e17670a461da2d94273e47cbc28e7 /drivers
parent0afec85720d1d8b394b962c6f2b4b62328108610 (diff)
parent1cc5ccba1b7997b6a296b53870d46d280f396095 (diff)
Merge pull request #3346 from SaracenOne/quaternion_uniform_assignment
Quaternion uniform assignment.
Diffstat (limited to 'drivers')
-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: {