소스 검색

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

AzaezelX 1 년 전
부모
커밋
7678f680a4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 );