THREE.JS / GALLERY webgpu_portal

A scene inside the scene.

The portal surface samples a second animated scene through the TSL pass(scenePortal, camera) graph.

InitializingPreparing

Preparing the portal scenes, animation mixers, and source-shaped node material.

models
-
mixers
-
portal graph
-
camera
-
noise scale
-
frame ms
-
Portal controlsloading

Waiting for the source-shaped portal graph.

Scoped contractsource-shaped
sceneMain.backgroundNodenormalWorld gradient
scenePortal.backgroundNodeWorley noise
pass(scenePortal, camera)portal colorNode
AnimationMixer × 2independent model clocks

The local RobotExpressive asset substitutes for the official Xbot.glb. Exact presentation, Inspector UI, and whole-example fidelity remain separate.

Pinned source topology: official webgpu_portal. Use ?backend=webgl for the labeled compatibility lane.

THREE.JS FOUNDATIONS LAB