diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-01-14 09:17:36 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-01-14 09:17:36 +0100 |
commit | 0860f3c196e6228f65ca5fee4c077b4509d77175 (patch) | |
tree | 29be8e91fd8e17670a461da2d94273e47cbc28e7 | |
parent | 0afec85720d1d8b394b962c6f2b4b62328108610 (diff) | |
parent | 1cc5ccba1b7997b6a296b53870d46d280f396095 (diff) |
Merge pull request #3346 from SaracenOne/quaternion_uniform_assignment
Quaternion uniform assignment.
-rw-r--r-- | drivers/gles2/shader_gles2.h | 5 |
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: { |