mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-30 02:42:54 +08:00
Generate LOD Lights adjustments
This commit is contained in:
parent
cad229163b
commit
2cf51e154e
@ -216,14 +216,15 @@ namespace CodeWalker.Project.Panels
|
|||||||
uint i = (byte)Math.Min(la.Intensity*4, 255);
|
uint i = (byte)Math.Min(la.Intensity*4, 255);
|
||||||
uint c = (i << 24) + (r << 16) + (g << 8) + b;
|
uint c = (i << 24) + (r << 16) + (g << 8) + b;
|
||||||
|
|
||||||
uint h = 123456; //TODO: what hash to use???
|
uint h = 0; //TODO: what hash to use???
|
||||||
|
|
||||||
//@Calcium:
|
//@Calcium:
|
||||||
//1 = point
|
//1 = point
|
||||||
//2 = spot
|
//2 = spot
|
||||||
//4 = capsule
|
//4 = capsule
|
||||||
uint type = la.Type;
|
uint type = la.Type;
|
||||||
uint t = la.TimeFlags + (type << 26);
|
uint unk = 1;//that is this? 2 bits
|
||||||
|
uint t = la.TimeFlags + (type << 26) + (unk << 24);
|
||||||
|
|
||||||
var maxext = (byte)Math.Max(Math.Max(la.ExtentX, la.ExtentY), la.ExtentZ);
|
var maxext = (byte)Math.Max(Math.Max(la.ExtentX, la.ExtentY), la.ExtentZ);
|
||||||
|
|
||||||
@ -237,7 +238,7 @@ namespace CodeWalker.Project.Panels
|
|||||||
hash.Add(h);
|
hash.Add(h);
|
||||||
coneInnerAngle.Add((byte)la.ConeInnerAngle);
|
coneInnerAngle.Add((byte)la.ConeInnerAngle);
|
||||||
coneOuterAngleOrCapExt.Add(Math.Max((byte)la.ConeOuterAngle, maxext));
|
coneOuterAngleOrCapExt.Add(Math.Max((byte)la.ConeOuterAngle, maxext));
|
||||||
coronaIntensity.Add((byte)la.CoronaIntensity);
|
coronaIntensity.Add((byte)(la.CoronaIntensity*6));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user