NFSU.cc / RE Atlas / Rendering & Shaders

Car light flare size (PC Speed.exe vs PS2 SLUS_208.11)

Rendering & Shaders 31 verified Speed.exe addresses Speed.exe (2003, x86)

Marks: V = read in disassembly/decompile this session, I = inferred, U = open. PC: Ghidra headless (build/ghidra/proj). PS2: ref/tools/rea/out/corpus/c and ref/docs/re/flares.md.

1. PC formula

Chain: 0x56d8d0 (car markers) or 0x544e90/0x544f30 (lamps) -> 0x5447c0 -> 0x5443f0 (quad). Per layer (V):

Descriptors (table 0x6f4150, two per type, 0x3c bytes; V from the dump):

addralpha lerpcolour end RGBAexppullk min..maxtex
0x6f3ef80..64 (+0,+4)100,120,170,801.450.80.01..0.015 (0x6f3f28/2c)0
0x6f3f3428..28100,120,140,203.00.80.01..0.0151
0x6f3f7020..30128,0,0,80 (red)1.00.20.01..0.022

Types 0, 7, 8 draw rec0 + rec1; the rest as the PS2 table. I: the blue star is rec0. U: which type the car head markers carry (+0xd comes from the model file).

2. Resolution dependence (I, from the V formula)

F = [view+0xc]. Screen half-size in px = alpha k 1.5 * F / z.

3. PS2 (V: corpus 0x29ad30, 0x29b198, 0x101098; tables in ref/docs/re/flares.md)

4. Our layer (read only)

5. Lever

Write float 1.0 (0x3f800000) at 0x6b633c (only reader 0x5444a9; patch it in the host like 0x6b5da0). Main-view stars shrink by 1/3 linear = PS2 size. If still large: lower rec0 alpha end 0x6f3efc (64.0) and rec1 0x6f3f38 (28.0) together; that is a taste choice, the PS2 values are the same 64/28. Leave k min/max (0x6f3f28/2c) alone: they set the zone limits above. NOT VERIFIED on screen (no build, no run, per brief).