Skip to content

feat(render-core): add draw transforms, translucent passes and scene framing - #1276

Draft
ugcodrr wants to merge 8 commits into
feat/minecraft-modelsfrom
feat/render-core-scenes
Draft

ugcodrr wants to merge 8 commits into
feat/minecraft-modelsfrom
feat/render-core-scenes

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Description: The render core could only draw a player on its own, so it had no way to place pack models in a scene.

  1. Each draw gets its own transform, see-through textures draw in a sorted pass after the solid ones, the camera frames the whole scene, and each render takes its own size.
  2. The mirrored pipelines are gone, since no transform needs them.
  3. A bare player goes through the same passes as a scene's: see-through texels blend after the solid ones, partly covered pixels keep their own color, and every normal is normalized. A texture with no see-through texel skips the blended pass. 32 of the 180 saved-skin renders change: the ones with see-through pixels, and the rest by a few edge pixels. A bare render takes about 0.4 ms longer on a software renderer (3.7 to 4.1 ms median).

Testing: pnpm --filter @statsify/render-core test passes, including the draw order test.

Depends on #1248

@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

# Conflicts:
#	packages/render-core/src/renderer/mod.rs
The skin and its armor go through Worn like a scene's player, so a bare
render lights and blends the same way: partly transparent texels after
the opaque ones, unpremultiplied, with every normal normalized. Main,
Attachment, Enchanted, the uneven scale flag and the unpremultiply
argument go.

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