Add support for moving shadow-casting lights

This commit is contained in:
SirLynix
2022-11-20 15:44:05 +01:00
committed by Jérôme Leclercq
parent a5d4b8f28d
commit 3623f4ccc4
5 changed files with 12 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ namespace Nz
void SpotLight::UpdateTransform(const Vector3f& position, const Quaternionf& rotation, const Vector3f& /*scale*/)
{
UpdatePosition(position);
m_position = position; //< don't call UpdatePosition to prevent double update
UpdateRotation(rotation);
}
}