Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Conversation

@toramanlis
Copy link

When the uniform object isn't deep cloned, multiple CubePanorama objects have the same material.uniforms.opacity object. This causes an issue if they're linked. After the transition is complete, the first cube's opacity turns false and since they're identical, the new one's also do. So the user ends up with a black screen. The THREE.ShaderLib[ 'cube' ] probably needs to be deep cloned but I wanted to make the minimum amount of changes to fix the issue.

When the `uniform` object isn't deep cloned, multiple `CubePanorama` objects have the same `material.uniforms.opacity` object. This causes an issue if they're linked. After the transition is complete, the first cube's `opacity` turns `false` and since they're identical, the new one's also do. So the user ends up with a black screen. The `THREE.ShaderLib[ 'cube' ]` probably needs to be deep cloned but I wanted to make the minimum amount of changes to fix the issue.
@ghost
Copy link

ghost commented Jun 30, 2022

I have the same problem when linking multiple CubePanorama objects.
Please merge this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant