mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Update RendererDraw.cpp
This commit is contained in:
parent
8ba6a2c286
commit
ab79156bfe
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue