mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed warning.
This commit is contained in:
parent
05a18ab5cf
commit
6f13e31d2b
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
||||||
float mtxInv[16];
|
float mtxInv[16];
|
||||||
mtxInverse(mtxInv, mtx);
|
mtxInverse(mtxInv, mtx);
|
||||||
float lightDirModel[4] = { -0.4f, -0.5f, -1.0f, 0.0f };
|
float lightDirModel[4] = { -0.4f, -0.5f, -1.0f, 0.0f };
|
||||||
float lightDirModelN[4];
|
float lightDirModelN[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||||
vec3Norm(lightDirModelN, lightDirModel);
|
vec3Norm(lightDirModelN, lightDirModel);
|
||||||
float lightDir[4];
|
float lightDir[4];
|
||||||
vec4MulMtx(lightDir, lightDirModelN, mtxInv);
|
vec4MulMtx(lightDir, lightDirModelN, mtxInv);
|
||||||
|
|
Loading…
Reference in a new issue