Vertex pulling #48

Manually merged
embeddedt merged 8 commits from vertex-pulling into stonecutter 2026-10-30 15:00:42 -04:00
8 Commits
Author SHA1 Message Date
embeddedt e47c9ef588 Derive the Iris normal, tangent and mid texcoord from the quad
ci / build (push) Failing after 1m16s
XHFP no longer stores them, so a quad takes 120 bytes. The mid texcoord is computed in texture units, which makes the raw-unit scaling in replaceMidTexCoord unnecessary.
2026-10-27 12:49:22 -04:00
embeddedt 207e893ca1 Let pulled vertex shaders read every corner of their primitive 2026-10-27 12:49:22 -04:00
embeddedt 8d8c50da84 Store XHFP's per-quad data once in a header
at_midBlock is no longer stored either; the transformer derives it from the block's position within its section. A quad now takes 132 bytes instead of 192.
2026-10-27 12:24:02 -04:00
embeddedt dc3f435efe Show the vertex format and fetch mode in F3 2026-10-27 11:59:12 -04:00
embeddedt 06082224f9 Let shader packs use pulled vertex formats
Vertex inputs that packs declare are now declared by the generated header with the pack's types, so they can be pulled too. The active texture unit is restored through GlStateManager, since Iris leaves the lightmap unit active.
2026-10-27 11:59:12 -04:00
embeddedt bed17e3a07 Add a benchmark for drawing terrain on the GPU 2026-10-27 11:27:21 -04:00
embeddedt 956a6c6442 Support pulling vertex data from a texture buffer
Formats are described by one layout, and the GLSL that supplies their inputs is generated from it, so attribute fetch and pulling read the same data with the same conversions. Pulling is off by default; -Dceleritas.preferVertexPulling=true enables it for formats that also support attributes.
2026-10-27 11:26:56 -04:00
embeddedt e4c6c2be77 Add abstraction to support vertex pulling 2026-10-27 10:36:34 -04:00