Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add support for PBR maps (specular, normal, metalness, roughness, emittance) #1276

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

leMaik
Copy link
Member

@leMaik leMaik commented May 22, 2022

I've been working on this for a while (since christmas 2020), it actually took so long that I added support for metalness and roughness in the meantime. The normal mapping only recently became feasible after switching to normalized quad block models.

For testing, launch with:

  • -Dchunky.pbr.specular=labpbr (default) or -Dchunky.pbr.specular=oldpbr
  • -Dchunky.pbr.normal=labpbr or -Dchunky.pbr.normal=oldpbr

The maps are multiplied to the Material settings, so you'll have to set specular, emittance and metalness to 1 for all blocks and smoothness to 0 (ie. roughness to 1). You can launch Chunky with -Dchunky.pbr.updateMaterialDefaults=true to do that.

Mixing PBR formats is not yet supported (we need some way to specify that per resourcepack).

@leMaik leMaik marked this pull request as draft May 22, 2022 20:10
@jackjt8
Copy link
Member

jackjt8 commented May 22, 2022

pbr_4

Working as intended. Looks really cool

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.

PBR textures support (Normal maps, height maps, emitter maps, specular maps)
3 participants