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

Water2: Add WebGPURenderer version. #29027

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Water2: Add WebGPURenderer version. #29027

merged 3 commits into from
Jul 31, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jul 31, 2024

Fixed #26446.

Description

This PR adds the WebGPURenderer version of Water2.

As suggested in #29019 (comment), the name of the module is now Water2Mesh.

@Mugen87 Mugen87 added this to the r168 milestone Jul 31, 2024
reflectionSampler.uvNode = reflectionSampler.uvNode.add( offset );

const refractorUV = viewportTopLeft.add( offset );
const refractionSampler = viewportSharedTexture( viewportSafeUV( refractorUV ) );
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunag Works like a charm! 🎉

@Mugen87 Mugen87 merged commit b331d8e into mrdoob:dev Jul 31, 2024
11 checks passed
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.

Port Water2 to WebGPU
1 participant