Browse Source

Examples: webgl_materials_cubemap_dynamic2 restore sphere toggle

Mugen87 8 years ago
parent
commit
1369964c75
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/webgl_materials_cubemap_dynamic2.html

+ 4 - 0
examples/webgl_materials_cubemap_dynamic2.html

@@ -184,6 +184,8 @@
 
 				camera.lookAt( scene.position );
 
+				sphere.visible = false;
+
 				// pingpong
 
 				if ( count % 2 === 0 ) {
@@ -200,6 +202,8 @@
 
 				count ++;
 
+				sphere.visible = true;
+
 				renderer.render( scene, camera );
 
 			}