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

Improve background + HDR #170

Open
2 tasks
madjin opened this issue Oct 11, 2024 · 1 comment
Open
2 tasks

Improve background + HDR #170

madjin opened this issue Oct 11, 2024 · 1 comment

Comments

@madjin
Copy link
Member

madjin commented Oct 11, 2024

In order to make pbr materials look amazing, we should look into these improvements

  • add hdr map
  • add ability to change background texture + hdr

btw WebGPU HDR support is coming to threejs 170: mrdoob/three.js#29573

wont work on linux yet by default tho

@madjin
Copy link
Member Author

madjin commented Oct 16, 2024

    const hdr = new RGBELoader().load("./hdr/studio_small_09_2k.hdr", (hdr_) => {
        hdr_.mapping = THREE.EquirectangularReflectionMapping;
        scene.environment = hdr_;
        scene.background = hdr_;
    })

can patch this into sceneinitializer (thx @Benjythebee!)

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

No branches or pull requests

1 participant