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

Merge pull request #5627 from greggman/fix-webgl-sample-for-devicepixelratio

Fix sample for machines with devicePixelRatio > 1
......@@ -142,11 +142,11 @@
function onWindowResize( event ) {
uniforms.resolution.value.x = window.innerWidth;
uniforms.resolution.value.y = window.innerHeight;
renderer.setSize( window.innerWidth, window.innerHeight );
uniforms.resolution.value.x = renderer.domElement.width;
uniforms.resolution.value.y = renderer.domElement.height;
}
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册