Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CodeWalker/WorldForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,22 @@ private void UpdateMouseHits(YmapFile ymap)
mb.Scale = Vector3.One;
Renderer.BoundingBoxes.Add(mb);

if (ll.LodLights != null)
{
for (int i = 0; i < ll.LodLights.Length; i++)
{
var light = ll.LodLights[i];
if ((light.Position - camera.Position).Length() > dmax) continue;
MapBox lmb = new();
lmb.CamRelPos = light.Position - camera.Position;
lmb.BBMin = new Vector3(-0.5f);
lmb.BBMax = new Vector3(0.5f);
lmb.Orientation = Quaternion.Identity;
lmb.Scale = Vector3.One;
Renderer.BoundingBoxes.Add(lmb);
}
}

if (ll.BVH != null)
{
UpdateMouseHits(ll.BVH, ref mray);
Expand Down