mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
Light hash calculation bounding box fix
This commit is contained in:
parent
5ebda6f0bb
commit
37ac0ba62b
@ -2109,12 +2109,12 @@ namespace CodeWalker.GameFiles
|
|||||||
}
|
}
|
||||||
if (lightAttrs == null) return;
|
if (lightAttrs == null) return;
|
||||||
|
|
||||||
var abmin = db.BoundingBoxMin;
|
var abmin = Vector3.Min(Archetype.BBMin, db.BoundingBoxMin);
|
||||||
var abmax = db.BoundingBoxMax;
|
var abmax = Vector3.Max(Archetype.BBMax, db.BoundingBoxMax);
|
||||||
if (b != null)
|
if (b != null)
|
||||||
{
|
{
|
||||||
abmin = b.BoxMin;
|
abmin = Vector3.Min(abmin, b.BoxMin);
|
||||||
abmax = b.BoxMax;
|
abmax = Vector3.Max(abmax, b.BoxMax);
|
||||||
}
|
}
|
||||||
var bb = new BoundingBox(abmin, abmax).Transform(Position, Orientation, Scale);
|
var bb = new BoundingBox(abmin, abmax).Transform(Position, Orientation, Scale);
|
||||||
var ints = new uint[7];
|
var ints = new uint[7];
|
||||||
|
Loading…
Reference in New Issue
Block a user