Liveries: stickers on vehicle glass (zones from _COLOR0) #496
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!496
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-496"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-27 19:07 UTC · original
holdmysocks:glass-zones→master· +68 −15 · 3 files · 2 commits · merged 2026-11-28 12:34 UTCStickers on vehicle windows were drawn nowhere. The Buffalo gang brands (zones 93-99) and about 100 other brands put stickers on glass, mostly rear-window stickers on zones 97/98 (Burrito, Montagne, Shuttle and the gang brands).
Why
standard_vehicle_glass,_crack,_windshield) read the same zone table as the body shaders: the same root-table slot, keyed by byte 1 of a flat vertex attribute, followed by a load of the layer record. So the game draws livery layers on glass._COLOR0byte 0). The fourth byte of the second stream (_COLOR1), which the viewer read, holds only 0-3 on glass.windscreen,windscreen_r,window_*). This holds on all 12 Buffalo configurations.Changes
vehlivery::zone_in_colour0(shader): true for the vehicle glass shaders._COLOR0byte 0 when the model loads. Drawing, the Liveries panel's zone list and click picking all use it.decal_prim): on glass primitives, the zone is read from the first colour stream.Tests
cargo test -p sixng-core vehlivery: 4 pass, one of them new (a glass primitive takes its zones from the first stream).cargo test -p sixng-gui: 57 pass.Not changed