Allows vec4 shader uniforms to be set by quaternion variant type.

This commit is contained in:
Saracen 2016-01-13 22:06:48 +00:00
parent 0d180b8719
commit 1cc5ccba1b
1 changed files with 5 additions and 0 deletions

View File

@ -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: {