瀏覽代碼

fix: Make the render background get the correct Alpha (#28459)

zhaocaho 1 年之前
父節點
當前提交
687a4caf8c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/postprocessing/RenderPass.js

+ 1 - 1
examples/jsm/postprocessing/RenderPass.js

@@ -42,7 +42,7 @@ class RenderPass extends Pass {
 		if ( this.clearColor !== null ) {
 
 			renderer.getClearColor( this._oldClearColor );
-			renderer.setClearColor( this.clearColor );
+			renderer.setClearColor( this.clearColor, renderer.getClearAlpha() );
 
 		}