# Stock player-car shadow textures

Each selectable stock car now has a source-authored `SHADOWIG` mask extracted
from its installed `CARS/<folder>/TEXTURES.BIN`. The texture inventory names
the 240SX pair `SHADOWFE` and `SHADOWIG`; the other 28 car packs contain the
same paired 128×64 black-RGB/DXT3-alpha record shape, with the same 0x65 key
spacing. The exporter keeps the higher key as the in-game mask and records
both keys and the source path in `garage-cars/manifest.json`.

`tools/export_nfsu2_car_shadows.py` performs that extraction and updates the
garage manifest; `tools/export_nfsu2_garage.py` also emits these masks when it
rebuilds the stock car catalog. The WebGL viewer uploads the selected mask as a transparent
ground quad below the player car. The mask and its alpha are retail data. The
quad footprint and 0.38 opacity are viewer-side render parameters; their exact
retail runtime values have not been recovered. The current pass covers the
player car only. It does not reproduce the game's full dynamic shadow system.
