void setViewport(num x, num y, double width, double height) { _viewport.set(x, y, width, height); state.viewport( _currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).floor()); }