Skip to content

feat(skin-renderer): draw a cape from a passed texture, with a camera yaw - #1193

Open
ugcodrr wants to merge 10 commits into
feat/skin-armourfrom
feat/skin-capes
Open

ugcodrr wants to merge 10 commits into
feat/skin-armourfrom
feat/skin-capes

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description: There was no way to draw a player's cape, and the camera only ever looked at the front.

  1. { cape } takes a cape PNG up to 2048x1024, and over a chestplate the cape sits a bit further out.
  2. { yaw } turns the camera around the player in radians (π shows the back), since a cape barely shows from the front.
  3. Each render gets its own camera now, so boots, which reach below the old frame, get the camera pulled back a little.

Stacked on #1192.

Testing: renderSkin(skin, false, false, { cape, yaw: Math.PI }) shows the cape from behind.

Capes from a few angles

@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 11, 2026 6:39am UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant