mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 15:02:54 +08:00
Light hash calculation including archetype extensions
This commit is contained in:
parent
e18cf990fe
commit
7b628aeab2
@ -2112,10 +2112,13 @@ namespace CodeWalker.GameFiles
|
||||
ints[4] = (uint)(bb.Maximum.Y * 10.0f);
|
||||
ints[5] = (uint)(bb.Maximum.Z * 10.0f);
|
||||
|
||||
var exts = (Archetype.Extensions?.Length ?? 0);// + (Extensions?.Length ?? 0);//seems entity extensions aren't included in this
|
||||
//todo: create extension light instances
|
||||
|
||||
var lightInsts = new LightInstance[lightAttrs.Length];
|
||||
for (int i = 0; i < lightAttrs.Length; i++)
|
||||
{
|
||||
ints[6] = (uint)(i + 1);
|
||||
ints[6] = (uint)(exts + i);
|
||||
var li = new LightInstance();
|
||||
li.Attributes = lightAttrs[i];
|
||||
li.Hash = ComputeLightHash(ints);
|
||||
|
Loading…
Reference in New Issue
Block a user