Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/webgl_postprocessing_fxaa.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
import { ShaderPass } from 'three/addons/postprocessing/ShaderPass.js';
import { OutputPass } from 'three/addons/postprocessing/OutputPass.js';
import { FXAAPass } from 'three/addons/postprocessing/FXAAPass.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
Expand Down
4 changes: 2 additions & 2 deletions examples/webgl_tonemapping.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
.name( 'type' )
.onChange( function () {

updateGUI( toneMappingFolder );
updateGUI();

renderer.toneMapping = toneMappingOptions[ params.toneMapping ];

Expand Down Expand Up @@ -181,7 +181,7 @@

} );

updateGUI( toneMappingFolder );
updateGUI();

gui.open();

Expand Down
2 changes: 0 additions & 2 deletions examples/webgpu_camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<script type="module">

import * as THREE from 'three/webgpu';
import { color } from 'three/tsl';

let SCREEN_WIDTH = window.innerWidth;
let SCREEN_HEIGHT = window.innerHeight;
Expand All @@ -41,7 +40,6 @@
let cameraRig, activeCamera, activeHelper;
let cameraPerspective, cameraOrtho;
let cameraPerspectiveHelper, cameraOrthoHelper;
let backgroundNode;
const frustumSize = 600;

init();
Expand Down
12 changes: 6 additions & 6 deletions examples/webgpu_compute_particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<script type="module">

import * as THREE from 'three/webgpu';
import { Fn, If, uniform, float, uv, vec2, vec3, hash, shapeCircle,
import { Fn, If, uniform, float, uv, vec3, hash, shapeCircle,
instancedArray, instanceIndex } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
Expand Down Expand Up @@ -81,7 +81,7 @@
const colors = instancedArray( particleCount, 'vec3' );

// compute

const separation = 0.2;
const amount = Math.sqrt( particleCount );
const offset = float( amount / 2 );
Expand All @@ -90,10 +90,10 @@

const position = positions.element( instanceIndex );
const color = colors.element( instanceIndex );

const x = instanceIndex.mod( amount );
const z = instanceIndex.div( amount );

position.x = offset.sub( x ).mul( separation );
position.z = offset.sub( z ).mul( separation );

Expand Down Expand Up @@ -197,7 +197,7 @@
//

function onMove( event ) {

if ( isOrbitControlsActive ) return;

pointer.set( ( event.clientX / window.innerWidth ) * 2 - 1, - ( event.clientY / window.innerHeight ) * 2 + 1 );
Expand Down Expand Up @@ -233,7 +233,7 @@
controls.maxDistance = 200;
controls.target.set( 0, -8, 0 );
controls.update();

controls.addEventListener( 'start', () => { isOrbitControlsActive = true; } );
controls.addEventListener( 'end', () => { isOrbitControlsActive = false; } );

Expand Down
4 changes: 2 additions & 2 deletions examples/webgpu_reflection.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import * as THREE from 'three/webgpu';

import { abs, blendOverlay, color, float, Fn, instancedBufferAttribute, materialColor, max, normalWorldGeometry, pass, positionGeometry, positionLocal, pow2, reflector, screenUV, sin, sub, texture, time, uniform, uv, vec2, vec3 } from 'three/tsl';
import { abs, blendOverlay, color, float, Fn, instancedBufferAttribute, max, normalWorldGeometry, pass, positionGeometry, positionLocal, pow2, reflector, screenUV, sin, sub, texture, time, uniform, uv, vec2, vec3 } from 'three/tsl';
import { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
Expand Down Expand Up @@ -317,7 +317,7 @@
const instanceNormal = instancedBufferAttribute( attributeNormal );
const instanceColor = instancedBufferAttribute( attributeColor );
const instanceData = instancedBufferAttribute( attributeData );

material.positionNode = Fn( () => {

const instanceSize = instanceData.x;
Expand Down
4 changes: 2 additions & 2 deletions examples/webgpu_tonemapping.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
.name( 'type' )
.onChange( function () {

updateGUI( toneMappingFolder );
updateGUI();

renderer.toneMapping = toneMappingOptions[ params.toneMapping ];

Expand Down Expand Up @@ -163,7 +163,7 @@

} );

updateGUI( toneMappingFolder );
updateGUI();

gui.open();

Expand Down
4 changes: 2 additions & 2 deletions examples/webxr_xr_haptics.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@

const oscillator = listener.context.createOscillator();
oscillator.type = 'sine';
oscillator.start()
oscillator.start();

const audio = new THREE.PositionalAudio( listener );
audio.setNodeSource( oscillator );
Expand All @@ -172,7 +172,7 @@

const audio = this.userData.audio;
audio.source.stop();

this.remove( audio );

}
Expand Down
Loading