Ver código fonte

WebGPUBackground: Clean up.

Mugen87 4 anos atrás
pai
commit
7a096e83c1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUBackground.js

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUBackground.js

@@ -33,7 +33,7 @@ class WebGPUBackground {
 			_clearColor.copy( renderer._clearColor );
 			_clearAlpha = renderer._clearAlpha;
 
-		} else if ( background !== null && background.isColor === true ) {
+		} else if ( background.isColor === true ) {
 
 			// background is an opaque color