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

Nodes & WebGPU: equirectUV() #24825

Merged
merged 5 commits into from
Oct 23, 2022
Merged

Nodes & WebGPU: equirectUV() #24825

merged 5 commits into from
Oct 23, 2022

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Oct 20, 2022

Description

This contribution is funded by Google

@sunag sunag added this to the r146 milestone Oct 20, 2022
@sunag
Copy link
Collaborator Author

sunag commented Oct 20, 2022

Basically the approach is this:

...
scene.backgroundNode = texture( equirectTexture, equirectUV(), 0 );

@sunag sunag merged commit 4f77503 into mrdoob:dev Oct 23, 2022
@sunag sunag deleted the dev-equirectuv branch October 23, 2022 02:56
@WestLangley
Copy link
Collaborator

WestLangley commented Oct 24, 2022

I think the mouse drag interaction is backwards in this panorama example. That is, a texel should remain (roughly) under the mouse when dragging.

controls.rotateSpeed = - 0.125; // negative, to track mouse pointer
controls.autoRotateSpeed = 1.0;

(Not tested with touch.)

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.

None yet

2 participants