From 1cc5ccba1b7997b6a296b53870d46d280f396095 Mon Sep 17 00:00:00 2001 From: Saracen Date: Wed, 13 Jan 2016 22:06:48 +0000 Subject: [PATCH] Allows vec4 shader uniforms to be set by quaternion variant type. --- drivers/gles2/shader_gles2.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gles2/shader_gles2.h b/drivers/gles2/shader_gles2.h index 51520cc9daf..68ae8af63f5 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: {