Improvements

This commit is contained in:
Morten Olsen
2021-08-27 21:47:53 +02:00
parent 84f4de421f
commit 5f3017c7cf
3 changed files with 56 additions and 15 deletions

View File

@@ -28,12 +28,16 @@ const setup = () => {
renderer.domElement.style.width = '100%';
renderer.domElement.style.height = '100%';
renderer.domElement.style.zIndex = -1;
renderer.domElement.style.opacity = 1;
renderer.domElement.style.animationName = 'fadein';
renderer.domElement.style.animationDuration = '2s';
document.body.appendChild(renderer.domElement);
addParticles();
addLights();
render();
requestAnimationFrame(() => {
//renderer.domElement.style.opacity = 1;
})
}
const addParticles = () => {