# Vehicle environment texture retention, r167

The L4RA city GLB contains `SKYDOME_LOC4DYNTEX_*` material records. The
viewer selects their source texture index (`1459` in the checked L4RA export)
for the car reflection shader. Before r167, neighborhood streaming only
collected textures referenced by visible geometry and discarded textures once
they left that set. `drawVehicle` could therefore lose the selected sky image
after driving away from the mesh that referenced it.

The initial city upload and every streamed neighborhood now retain the
selected environment texture index. The L4RA Chrome check drove the car through
a stream boundary: the page reached ready with 27,352 nearby triangles and
138 nearby textures, the WebGL context remained available, and debug telemetry
reported environment index 1459 loaded for the 240SX.

This preserves the recovered environment image for the shader; it does not
recover the missing L4RB sky material or prove the reflection equation matches
the retail renderer. The current capture is
[`256-r167-streamed-car-environment-l4ra.png`](../webgl-city/review/images/256-r167-streamed-car-environment-l4ra.png).
