converted to threejs instead of canvas
window resize implemented