Skip to content

Commit 00855c6

Browse files
committed
Clean up.
1 parent 1310e4e commit 00855c6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/webgpu_reflection.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
floorMaterial.colorNode = texture( floorColor, floorUV ).add( reflection );
108108

109109
const floor = new THREE.Mesh( new THREE.BoxGeometry( 50, .001, 50 ), floorMaterial );
110-
floor.position.set( 0, 0, 0 );
111110
floor.receiveShadow = true;
112111
scene.add( floor );
113112

@@ -146,14 +145,12 @@
146145
const scenePassColorBlurred = gaussianBlur( scenePassColor );
147146
scenePassColorBlurred.directionNode = scenePassDepth;
148147

149-
const vignette = screenUV.distance( .5 ).mul( 1.25 ).clamp().oneMinus().sub( 0.2);
148+
const vignette = screenUV.distance( .5 ).mul( 1.25 ).clamp().oneMinus().sub( 0.2 );
150149

151150
postProcessing = new THREE.PostProcessing( renderer );
152151
postProcessing.outputNode = blendOverlay( scenePassColorBlurred, vignette );
153152

154-
//
155-
156-
window.addEventListener( 'resize', onWindowResize );
153+
// tweens
157154

158155
const effectTween = new TWEEN.Tween( uniformEffector1 )
159156
.to( { value: 1.2 }, 3000 )
@@ -168,6 +165,10 @@
168165
.easing( TWEEN.Easing.Sinusoidal.InOut )
169166
.start();
170167

168+
//
169+
170+
window.addEventListener( 'resize', onWindowResize );
171+
171172
}
172173

173174
function onWindowResize() {

0 commit comments

Comments
 (0)