My current project involves Three.js and can be accessed here in its entirety.
The particles in the project have a lot of vertical space around them that is unoccupied. I am trying to find a way to reduce this space or put the project inside a div. I tried adjusting renderer.setSize
but it distorted the scene. Placing it in a div didn't yield any results for me either.
My formal training in web design was limited, only covering the basics. I had to learn things like this online, so I apologize if my questions seem simplistic.
var SEPARATION = 70, AMOUNTX = 25, AMOUNTY = 20;
var container, camera, scene, renderer;
var particles, particle, count = 0;
var mouseX = 0, mouseY = 0;
var windowHalfX = window.innerWidth / 2;
var windowHalfY = window.innerHeight / 2;
...