Skip to content

Commit 306fb93

Browse files
authored
Examples: Clean up. (#26901)
* Examples: Clean up. * Examples: Updated screenshot.
1 parent 7aba3d2 commit 306fb93

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
-277 Bytes
Loading

examples/webxr_vr_postprocessing.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div id="container"></div>
1919

2020
<div id="info">
21-
<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> vr - postprocessing<br/>
21+
<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> VR - postprocessing<br/>
2222
(Oculus Browser 15.1+)
2323
</div>
2424

@@ -53,9 +53,11 @@
5353

5454
renderer = new THREE.WebGLRenderer();
5555
renderer.setSize( window.innerWidth, window.innerHeight );
56+
renderer.toneMapping = THREE.ACESFilmicToneMapping;
57+
renderer.toneMappingExposure = 1;
58+
renderer.xr.enabled = true;
5659
document.body.appendChild( renderer.domElement );
5760

58-
renderer.xr.enabled = true;
5961
document.body.appendChild( VRButton.createButton( renderer ) );
6062

6163
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight );
@@ -86,7 +88,7 @@
8688
composer.setSize( window.innerWidth, window.innerHeight );
8789
composer.addPass( new RenderPass( scene, camera ) );
8890
composer.addPass( new UnrealBloomPass( undefined, 0.5, 1, 0 ) );
89-
composer.addPass( new OutputPass( THREE.ACESFilmicToneMapping ) );
91+
composer.addPass( new OutputPass() );
9092

9193
window.addEventListener( 'resize', onWindowResize );
9294

0 commit comments

Comments
 (0)