Update RendererDraw.cpp

This commit is contained in:
Lwmte 2024-12-18 15:37:25 +01:00
parent 8ba6a2c286
commit ab79156bfe

View file

@ -1652,6 +1652,9 @@ namespace TEN::Renderer
// Check if light is spawned in a mirrored room, and create reflection.
for (auto& mirror : g_Level.Mirrors)
{
if (!mirror.ReflectLights)
continue;
if ((Camera.pos.RoomNumber == mirror.RoomNumber || LaraItem->RoomNumber == mirror.RoomNumber) &&
IsPointInRoom(light.Position, mirror.RoomNumber))
{