Explorar el Código

fix light emission point for shapebaseimaged
light generally comes from the muzzle of a gun, not the ground

AzaezelX hace 1 año
padre
commit
7678f680a4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Engine/source/T3D/shapeImage.cpp

+ 1 - 1
Engine/source/T3D/shapeImage.cpp

@@ -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 );