Răsfoiți Sursa

WebGLBackground: More robust scene handling.

Mr.doob 5 ani în urmă
părinte
comite
b97af33123
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/renderers/webgl/WebGLBackground.js

+ 1 - 1
src/renderers/webgl/WebGLBackground.js

@@ -25,7 +25,7 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
 
 	function render( renderList, scene, camera, forceClear ) {
 
-		let background = scene.background;
+		let background = scene.isScene === true ? scene.background : null;
 
 		// Ignore background in AR
 		// TODO: Reconsider this.