mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Astyle
This commit is contained in:
parent
389798ee4b
commit
9f50dbc9bc
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ void ResolveLight( gltfData* data, idMapEntity* newEntity, gltfNode* node )
|
|||
gltfData::ResolveNodeMatrix( node, &entityToWorldTransform );
|
||||
float fov = tan( light->spot.outerConeAngle ) / 2 ;
|
||||
|
||||
idQuat q = (entityToWorldTransform).ToMat3().ToQuat();
|
||||
idQuat q = ( entityToWorldTransform ).ToMat3().ToQuat();
|
||||
q = idAngles( 90.0f, 0.0, -90.0f ).ToQuat() * q * idAngles( 180.0f, 180.0f, -90.0f ).ToQuat();
|
||||
idMat3 axis = q.ToMat3();
|
||||
newEntity->epairs.SetVector( "light_target", axis[0] );
|
||||
|
|
Loading…
Reference in a new issue