mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
I was forgetting to set the size of the composer
This commit is contained in:
5
TODO.txt
5
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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user