Following up this question here I am trying to get a good rendering of a floating 3D cube using three.js. The camera proportions are
window.innerWidth / window.innerHeight
There are units displaying elements depending to the screen : vh and vw
vh : means viewport hight.
height:50vh; will take 50% height of the screen ( and not of the parent element ).
vw : means viewport width.
width:50vw; will take 50% width of the screen ( and not of the parent element ).