Explorar el Código

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

zhaocaho hace 1 año
padre
commit
687a4caf8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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() );
 
 		}