mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 09:47:58 +03:00
Revert "Merge branch 'master' of https://github.com/MontyTRC89/TR5Main"
This reverts commit073bc756fb
, reversing changes made to310d11a1f4
.
This commit is contained in:
parent
073bc756fb
commit
01de9bd37a
1 changed files with 4 additions and 4 deletions
|
@ -335,11 +335,11 @@ namespace T5M::Renderer
|
|||
{
|
||||
RendererLight *light = m_dynamicLights[i];
|
||||
|
||||
Vector3 boxMin = Vector3(r->x, -r->minfloor, r->z);
|
||||
Vector3 boxMax = Vector3((r->x + r->xSize) * WALL_SIZE, -r->maxceiling, (r->z + r->ySize) * WALL_SIZE);
|
||||
Vector3 boxMin = Vector3(r->x - WALL_SIZE, -r->minfloor, r->z - WALL_SIZE);
|
||||
Vector3 boxMax = Vector3(r->x + r->xSize * WALL_SIZE, -r->maxceiling, r->z + r->ySize * WALL_SIZE);
|
||||
Vector3 center = Vector3(light->Position.x, -light->Position.y, light->Position.z);
|
||||
float radius = light->Out;
|
||||
if (sphereBoxIntersection(boxMin, boxMax, center, radius))
|
||||
|
||||
if (sphereBoxIntersection(boxMin, boxMax, center, light->Out))
|
||||
renderView.lightsToDraw.push_back(light);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue