提交 f60a6e7b 编写于 作者: M Mr.doob

Editor: Set Pixel Ratio.

上级 8a9f5196
......@@ -270,6 +270,7 @@ var Viewport = function ( editor ) {
renderer = createRenderer( type, antialias );
renderer.setClearColor( clearColor );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( container.dom.offsetWidth, container.dom.offsetHeight );
container.dom.appendChild( renderer.domElement );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册