diff --git a/TODO.txt b/TODO.txt index 82563a1..e658ea9 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,8 +1,5 @@ TODO: -Make sure all the pass textures are resizing properly when the window resizes - Whatever it is, it affects the bloom shader even though it has resize ability - Reach out to Ashley's partner about producing sounds Raindrop sound https://youtu.be/bPhu01wpf0k?t=34 @@ -27,6 +24,8 @@ Much later: Square event Expanding white outline of a box Delay it like the raindrop particles + Neo flying + Staticky julia set looking silhouette Simpler bloom replacement? More patterns? Symbol duplication is common diff --git a/index.html b/index.html index 31eb308..f67cb49 100644 --- a/index.html +++ b/index.html @@ -116,8 +116,8 @@ document.body.appendChild(element); const renderer = new THREE.WebGLRenderer({ stencil: false, depth: false, precision: "lowp" }); renderer.sortObjects = true; - renderer.setPixelRatio(window.devicePixelRatio); renderer.setSize( window.innerWidth, window.innerHeight ); + renderer.setPixelRatio(window.devicePixelRatio); element.appendChild(renderer.domElement); const composer = new THREE.EffectComposer( renderer ); @@ -176,8 +176,9 @@ const windowResize = () => { const [width, height] = [window.innerWidth, window.innerHeight]; - renderer.setSize(width, height); matrixRenderer.resize(width, height); + renderer.setSize(width, height); + composer.setSize(width, height); bloomPass.setSize( window.innerWidth, window.innerHeight ); } window.addEventListener("resize", windowResize, false);