Explorar o código

WebGPUBackground: Clean up.

Mugen87 %!s(int64=4) %!d(string=hai) anos
pai
achega
7a096e83c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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