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

[WIP] switch to WebGPU #4939

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[WIP] switch to WebGPU #4939

wants to merge 3 commits into from

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Nov 13, 2024

Now that Three.js supports WebGPU, and better yet, WebGPURenderer automatically falls back to WebGL2Renderer on unsupported platforms, it's probably about time we started migrating. Amazingly, it sort of already works! Main problems I've noticed so far are with our custom shaders:

  1. custom blur shader for the generated environment. I think we can delete all this code and start using getTextureLevel instead, but that means we'll also have to transition from scene.environment to scene.environmentNode`.

  2. custom shadow shader. Just rewrite this in TSL - shouldn't be too complex.

We'll see how the rest goes... FYI @mrdoob.

@elalish elalish self-assigned this Nov 13, 2024
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.

1 participant