Added uniform matrix scale override.

This commit is contained in:
Branimir Karadžić
2016-07-11 00:05:16 -07:00
parent 35d5f82ac2
commit 921c2e381f

View File

@@ -550,6 +550,11 @@ namespace bx
_result[15] = 1.0f;
}
inline void mtxScale(float* _result, float _scale)
{
mtxScale(_result, _scale, _scale, _scale);
}
inline void mtxFromNormal(float* __restrict _result, const float* __restrict _normal, float _scale, const float* __restrict _pos)
{
float tangent[3];