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

Yet another tweak to CanvasRenderer handling clearColor (thanks @StephenHopkins)

上级 e21dccf3
此差异已折叠。
此差异已折叠。
......@@ -120,6 +120,8 @@ THREE.CanvasRenderer = function ( parameters ) {
_clearColor = color;
_clearOpacity = opacity;
_clearRect.set( - _canvasWidthHalf, - _canvasHeightHalf, _canvasWidthHalf, _canvasHeightHalf );
};
this.setClearColorHex = function( hex, opacity ) {
......@@ -127,6 +129,8 @@ THREE.CanvasRenderer = function ( parameters ) {
_clearColor.setHex( hex );
_clearOpacity = opacity;
_clearRect.set( - _canvasWidthHalf, - _canvasHeightHalf, _canvasWidthHalf, _canvasHeightHalf );
};
this.clear = function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册