Update RendererDraw.cpp

This commit is contained in:
Lwmte 2024-12-18 11:09:56 +01:00
parent 14f6ab36d0
commit 2705a5ae7b

View file

@ -1654,7 +1654,7 @@ namespace TEN::Renderer
{
if (Camera.pos.RoomNumber == mirror.RealRoom && IsPointInRoom(light.Position, mirror.RealRoom))
{
auto reflectedLight = light;
RendererLight reflectedLight = light;
reflectedLight.Position = Vector3::Transform(light.Position, mirror.ReflectionMatrix);
reflectedLight.Direction = Vector3::Transform(light.Direction, mirror.ReflectionMatrix);
reflectedLight.Hash = 0;