Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make display mode lighting accurate and add shading modes - #3716

Open
ewanhowell5195 wants to merge 27 commits into
JannisX11:nextfrom
ewanhowell5195:accurate-display-shading
Open

Make display mode lighting accurate and add shading modes#3716
ewanhowell5195 wants to merge 27 commits into
JannisX11:nextfrom
ewanhowell5195:accurate-display-shading

Conversation

@ewanhowell5195

@ewanhowell5195 ewanhowell5195 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Display mode lighting used to be really off. Items were lit like a block sitting in the world, evenly from both sides, when the game lights them from one side in the inventory. It is game accurate now, with the GUI slot using the inventory lighting and every other slot using the entity lighting.

Old GUI side light vs new accurate GUI side light
image

Old GUI front light vs new accurate GUI front light
image

The default shading was slightly off too. It matched the game on flat faces but not in between, so rotated cubes were inaccurate. That is fixed.

Old default lighting
image

New default lighting - The main difference is noticed on cubes rotated more than one axis (the top three)
image

I also decided to build this as a system of shading modes rather than hardcoding it, so plugins can extend it and formats can pick a preferred one. That made a set of presets worth having, so entity formats use entity lighting instead of block lighting, the dimensions have their own, and preview scenes can just name one.

There is a new Shading Mode setting to override all of it. It defaults to Automatic, which leaves the choice to the preview scene, and then the format.

All the values come from the game rather than being eyeballed. This is based on my work from https://github.com/ewanhowell5195/block-model-renderer.

JannisX11/blockbench-scenes#2 is the companion change for the nether, night and end scenes, and should go in when this releases.

@netlify

netlify Bot commented Aug 30, 2026

Copy link
Copy Markdown

Deploy Preview for blockbench-dev ready!

Name Link
🔨 Latest commit 6667020
🔍 Latest deploy log https://app.netlify.com/projects/blockbench-dev/deploys/6a94997c031f9c0008aeb627
😎 Deploy Preview https://deploy-preview-3716--blockbench-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

…ading

# Conflicts:
#	js/preview/preview_scenes.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant