ソースを参照

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 ) {
 		if ( this.clearColor !== null ) {
 
 
 			renderer.getClearColor( this._oldClearColor );
 			renderer.getClearColor( this._oldClearColor );
-			renderer.setClearColor( this.clearColor );
+			renderer.setClearColor( this.clearColor, renderer.getClearAlpha() );
 
 
 		}
 		}