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

WebGLRenderer: Simplified the new premultipliedAlpha code.

上级 76fb67fb
......@@ -257,14 +257,12 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( _premultipliedAlpha === true ) {
_gl.clearColor( r * a, g * a, b * a, a );
} else {
_gl.clearColor( r, g, b, a );
r *= a; g *= a; b *= a;
}
_gl.clearColor( r, g, b, a );
};
var setDefaultGLState = function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册