feat(hero): instanced ribbon trail renderer #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patman/hero-renderer"
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?
PR 5/7 in the hero-toolpaths stack (prev: hero-shaders, next: hero-lifecycle). One shader pair; trail segments are instanced ribbon quads (never gl.LINE_STRIP) over a fixed 2048-slot ring VBO per racer; one small bufferSubData per racer per frame is the only GPU upload. Fragment alpha fades with segment age so paths dissolve before the ring wraps — infinite trail, fixed memory. WebGL2 with WebGL1+ANGLE fallback; the cutting head is the newest segment redrawn 3.5x wide (age near 0 makes it white-hot), no second shader. Review focus: ring indexing incl. the head-redraw offset at wrap; instance attribute setup/divisors; constant draw cost.
58e8fd8a0d6b8ff37d5c6b8ff37d5c35573a5e8cView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.