mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed sin(y) sign in mtxRotateXY().
This commit is contained in:
parent
20838ea4f2
commit
01c764d060
1 changed files with 3 additions and 3 deletions
|
@ -279,11 +279,11 @@ inline void mtxRotateXY(float* _result, float _ax, float _ay)
|
|||
|
||||
memset(_result, 0, sizeof(float)*16);
|
||||
_result[ 0] = cy;
|
||||
_result[ 2] = -sy;
|
||||
_result[ 4] = -sx*sy;
|
||||
_result[ 2] = sy;
|
||||
_result[ 4] = sx*sy;
|
||||
_result[ 5] = cx;
|
||||
_result[ 6] = -sx*cy;
|
||||
_result[ 8] = cx*sy;
|
||||
_result[ 8] = -cx*sy;
|
||||
_result[ 9] = sx;
|
||||
_result[10] = cx*cy;
|
||||
_result[15] = 1.0f;
|
||||
|
|
Loading…
Reference in a new issue