Repository navigation
Add the R3F v10 WebGPU examples - #254
Merged
Merged
Conversation
Eleven examples ported from the react-three-fiber v10 example app, so the docs can link here instead of to that repo's dev app. Each runs on @react-three/fiber 10.0.0-alpha.6 and was checked in Chrome on a real WebGPU adapter, where its thumbnail was taken. - webgpu-basics, webgpu-shared-uniforms, webgpu-raging-sea, webgpu-fog, webgpu-motion-blur: TSL materials and the @react-three/tsl hooks - webgpu-multi-canvas, webgpu-shared-renderer: canvases sharing one renderer - webgpu-visibility-events: onFramed / onOccluded / onVisible - use-frame-controls, use-frame-fps, use-frame-phases: the v10 scheduler - Adds them to the fiber v10 syncpack group, which now also pins @react-three/tsl, and turns on the drei v11 group for the ones using drei - Adds @react-three/tsl as a library, and the fog and frame-loop tags - Listed in e2e exceptions: no WebGPU adapter in the harness, and CheesyCanvas would mount a fiber 9 root around them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eleven examples ported from the react-three-fiber v10 example app (
example/src/demos/webgpu). The plan is for the R3F docs to link to these pages instead of the dev app in the fiber repo, which goes back to being a test bed.All run on
@react-three/fiber@10.0.0-alpha.6. Each one was built, opened in Chrome on a real WebGPU adapter with no console errors, and its 1600×840 thumbnail was taken from that run.webgpu-basicsbackgroundpreset on the Canvaswebgpu-shared-uniformsuseUniform,useUniforms,useNodeswebgpu-raging-seauseUniforms→ nameduseNodeswebgpu-foguseLocalNodesinstallingfogNode/backgroundNodewebgpu-motion-bluruseRenderPipelinewith a velocity MRTwebgpu-multi-canvaswebgpu-shared-rendererprimary, automatic sharing,share="id",share={false}webgpu-visibility-eventsonFramed/onOccluded/onVisibleuse-frame-controlsuse-frame-fpsfpslimitsuse-frame-phasesphysicsphase, interpolation, a customcameraphaseRepo changes
.syncpackrc.json: the new examples join the fiber v10 group, which now also pins@react-three/tsl. The drei v11 group (11.0.0-alpha.7) is turned on for the ones that use drei, since drei 10 targets fiber 9.pnpm-workspace.yaml:@react-three/tsl@10.0.0-alpha.6excluded from the release-age gate, like fiber alpha.6.@react-three/tsladded as a library (labelled "TSL"), plus thefogandframe-looptags.bin/e2e-exceptions.mjs: all eleven are listed. There's no WebGPU adapter in the harness, and the monkey plugin'sCheesyCanvasimports the hoisted fiber 9, so it would mount a v9 root around them.Notes
WebGPUPrimaryOnlyandWebGPURendererReleaseare regression repros (#3847, #3926) and stay in the fiber repo.CameraControlslogs deprecation warnings forstate.gland numericuseFramepriorities inwebgpu-raging-seaanduse-frame-controls. Those come from drei, not from the examples.🤖 Generated with Claude Code