M3-org / CharacterStudio

Open source web based custom VRM avatar creation platform
https://studio.m3org.com/
MIT License
107 stars 26 forks source link

Improve background + HDR #170

Open madjin opened 1 month ago

madjin commented 1 month ago

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

btw WebGPU HDR support is coming to threejs 170: https://github.com/mrdoob/three.js/pull/29573

wont work on linux yet by default tho

madjin commented 1 month ago
    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!)