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

SoftwareRenderer: Workaround for avoiding drawing outside the buffer.

上级 b6de3cf2
......@@ -40,8 +40,8 @@ THREE.SoftwareRenderer = function () {
this.setSize = function ( width, height ) {
canvasWidth = width | 0;
canvasHeight = height | 0;
canvasWidth = Math.floor( width / blocksize ) * blocksize;
canvasHeight = Math.floor( height / blocksize ) * blocksize;
canvasWidthHalf = canvasWidth / 2;
canvasHeightHalf = canvasHeight / 2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册