mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fix light emission point for shapebaseimaged
light generally comes from the muzzle of a gun, not the ground
This commit is contained in:
parent
cfe76944e7
commit
7678f680a4
1 changed files with 1 additions and 1 deletions
|
|
@ -3342,7 +3342,7 @@ void ShapeBase::submitLights( LightManager *lm, bool staticLighting )
|
|||
image.lightInfo->setType( LightInfo::Point );
|
||||
|
||||
MatrixF imageMat;
|
||||
getRenderImageTransform( i, &imageMat );
|
||||
getRenderMuzzleTransform( i, &imageMat );
|
||||
|
||||
image.lightInfo->setTransform( imageMat );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue