Allows vec4 shader uniforms to be set by quaternion variant type.
This commit is contained in:
parent
0d180b8719
commit
1cc5ccba1b
|
@ -205,6 +205,11 @@ private:
|
||||||
Plane val=p_value;
|
Plane val=p_value;
|
||||||
glUniform4f( p_uniform, val.normal.x,val.normal.y,val.normal.z,val.d );
|
glUniform4f( p_uniform, val.normal.x,val.normal.y,val.normal.z,val.d );
|
||||||
} break;
|
} break;
|
||||||
|
case Variant::QUAT: {
|
||||||
|
|
||||||
|
Quat val=p_value;
|
||||||
|
glUniform4f( p_uniform, val.x,val.y,val.z,val.w );
|
||||||
|
} break;
|
||||||
|
|
||||||
case Variant::MATRIX32: {
|
case Variant::MATRIX32: {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue