提交 e9ca7cf7 编写于 作者: A alteredq

Merge remote-tracking branch 'remotes/mrdoob/master' into dev

因为 它太大了无法显示 source diff 。你可以改为 查看blob
此差异已折叠。
......@@ -142,7 +142,7 @@ THREE.CanvasRenderer = function ( parameters ) {
_clearRect.inflate( 1 );
_clearRect.minSelf( _clipRect );
if ( _clearColor.hex == 0x000000 && _clearOpacity == 0 ) {
if ( _clearOpacity == 0 ) {
_context.clearRect( _clearRect.getX(), _clearRect.getY(), _clearRect.getWidth(), _clearRect.getHeight() );
......@@ -151,7 +151,8 @@ THREE.CanvasRenderer = function ( parameters ) {
setBlending( THREE.NormalBlending );
setOpacity( 1 );
_context.fillStyle = 'rgba(' + Math.floor( _clearColor.r * 255 ) + ',' + Math.floor( _clearColor.g * 255 ) + ',' + Math.floor( _clearColor.b * 255 ) + ',' + _clearOpacity + ')';
_contextFillStyle = 'rgba(' + Math.floor( _clearColor.r * 255 ) + ',' + Math.floor( _clearColor.g * 255 ) + ',' + Math.floor( _clearColor.b * 255 ) + ',' + _clearOpacity + ')'
_context.fillStyle = _contextFillStyle;
_context.fillRect( _clearRect.getX(), _clearRect.getY(), _clearRect.getWidth(), _clearRect.getHeight() );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册