Преглед изворни кода

WebGPUBackground: Clean up.

Mugen87 пре 4 година
родитељ
комит
7a096e83c1
1 измењених фајлова са 1 додато и 1 уклоњено
  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