Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Oct 21, 2023
1 parent 144756a commit d7cb853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/webgpu_shadertoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@

init();

async function init() {
function init() {

if ( WebGPU.isAvailable() === false && WebGL.isWebGL2Available() === false ) {

Expand Down Expand Up @@ -271,7 +271,7 @@
const geometry = new THREE.PlaneGeometry( 2, 2 );

const material = new Nodes.MeshBasicNodeMaterial();
material.colorNode = Nodes.oscSine( Nodes.timerGlobal( .3 ) ).mix( shaderToy1Node, shaderToy2Node );
material.colorNode = Nodes.oscSine( Nodes.timerLocal( .3 ) ).mix( shaderToy1Node, shaderToy2Node );

const quad = new THREE.Mesh( geometry, material );
scene.add( quad );
Expand Down

0 comments on commit d7cb853

Please sign in to comment.