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
14f6ab36d0
commit
2705a5ae7b
1 changed files with 1 additions and 1 deletions
|
@ -1654,7 +1654,7 @@ namespace TEN::Renderer
|
||||||
{
|
{
|
||||||
if (Camera.pos.RoomNumber == mirror.RealRoom && IsPointInRoom(light.Position, mirror.RealRoom))
|
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.Position = Vector3::Transform(light.Position, mirror.ReflectionMatrix);
|
||||||
reflectedLight.Direction = Vector3::Transform(light.Direction, mirror.ReflectionMatrix);
|
reflectedLight.Direction = Vector3::Transform(light.Direction, mirror.ReflectionMatrix);
|
||||||
reflectedLight.Hash = 0;
|
reflectedLight.Hash = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue