Add support for moving shadow-casting lights
This commit is contained in:
committed by
Jérôme Leclercq
parent
a5d4b8f28d
commit
3623f4ccc4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user