fix(G.3 A7): torch range = Falloff x 1.5 (retail rangeAdjust) — wider pools (#133)
Retail PrimD3DRender::config_hardware_light (0x0059ad30) sets the hardware light Range = Falloff * rangeAdjust (1.5, global 0x00820cc4). We used Range = Falloff, so torches reached only 2/3 of retail -> tight 'candle/spotlight' bubbles in dungeons. Match retail's reach. Ambient 0.20 confirmed retail-faithful (the 0.30 was CreatureMode, not world cells). Lighting suite green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9e809bc661
commit
1e70a5a484
2 changed files with 7 additions and 2 deletions
|
|
@ -79,7 +79,12 @@ public static class LightInfoLoader
|
|||
(info.Color?.Green ?? 255) / 255f,
|
||||
(info.Color?.Blue ?? 255) / 255f),
|
||||
Intensity = info.Intensity,
|
||||
Range = info.Falloff,
|
||||
// Retail PrimD3DRender::config_hardware_light (0x0059ad30) sets the
|
||||
// hardware light Range = Falloff * rangeAdjust, where rangeAdjust is
|
||||
// the fixed global 1.5 (0x00820cc4). Our prior Range = Falloff reached
|
||||
// only 2/3 of retail's distance → tight torch bubbles (the dungeon
|
||||
// "candles/spotlights" report, #133 A7). Match retail's reach.
|
||||
Range = info.Falloff * 1.5f,
|
||||
ConeAngle = info.ConeAngle,
|
||||
OwnerId = ownerId,
|
||||
IsLit = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue