3D map: short vertex program for the material table's shadows #531
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!531
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-531"
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-28 04:19 UTC · original
holdmysocks:six-map3d-tableshadow→master· +71 −18 · 3 files · 7 commits · merged 2026-11-28 04:48 UTC3D map: a short vertex program for the material table's shadow casters.
With the material table on, the shadow cascades cost 0.14–0.21 ms more GPU time than with it off. That cost is now gone.
What changes
vs_shadow_t: the instance matrix times the vertex, plus the base UV and the material index for the cut-out test. Table models have no joints and no strands, so the rest of the mesh vertex program did nothing for them.SIXNG_MAP_GPU_TABLE:shadowfull: the full mesh vertex program for shadows.shadowold: the table's models cast shadows the old way.vsfull: whole-row material loads.How the cause was found (second PC, RTX 3090, Vulkan)
shadowoldvsfullThe table submits the same number of shadow triangles as the old path, or up to 10 % fewer, so the cost was not extra geometry.
Results (round 42)
Shadows, ms: