Questions about WebGLCubeRenderTarget and CubeCamera

If I only add mesh that requires a mirror in the scene, the display effect is normal, but if I add the entire model to the scene, it seems to be broken!


            let obj=e.scene
            let face=obj.getObjectByName("Object_18")

            let cubeRenderTarget = new THREE.WebGLCubeRenderTarget( 256 );
            cubeRenderTarget.texture.type = THREE.FloatType;
            this.cubeCamera = new THREE.CubeCamera( 0.1, 1000, cubeRenderTarget );

            face.material=new THREE.MeshStandardMaterial({
                envMap: cubeRenderTarget.texture,
                roughness: 0.05,
                metalness: 1

            // this.scene.add(obj)

If I set the same material for the entire model, the result is normal

@Mugen87 help ! :melting_face:

I’m afraid your issue is not clear. Consider to show what you are doing with a live example: three.js dev template - module - JSFiddle - Code Playground


in line 117 scene.environment
the related resources are a bit large, please wait :face_with_peeking_eye:
:smiley: Thank you very much!