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

Examples: Add background to webgpu_pmrem_scene #30116

Merged
merged 13 commits into from
Dec 13, 2024
Binary file modified examples/screenshots/webgpu_pmrem_scene.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions examples/webgpu_pmrem_scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
controls.update();

//
const loader = new THREE.CubeTextureLoader().setPath( './textures/cube/Park3Med/' );

scene.background = new THREE.Color( 0x006699 );
scene.background = await loader.loadAsync( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );

let model;

Expand Down Expand Up @@ -91,8 +92,6 @@

const sceneRT = new THREE.PMREMGenerator( renderer ).fromScene( scene );

scene.background = null;
scene.backgroundNode = null;

//

Expand Down
Loading