Procházet zdrojové kódy

Fix 'car' WebGL example not working in playground (#27757)

* Fix car WebGL example not working in playground

* Update index.html

Remove deprecated code.

---------

Co-authored-by: Michael Herzog <[email protected]>
abc013 před 1 rokem
rodič
revize
a9db0d3839
2 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 0 0
      playground/examples/webgl/car.json
  2. 1 2
      playground/index.html

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
playground/examples/webgl/car.json


+ 1 - 2
playground/index.html

@@ -91,7 +91,7 @@
 
 				//
 
-				camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 0.5, 60 );
+				camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 0.5, 200 );
 				camera.position.set( 0.0, 3, 4 * 3 );
 
 				scene = new THREE.Scene();
@@ -117,7 +117,6 @@
 				} else {
 
 					renderer = new THREE.WebGLRenderer( { antialias: true } );
-					renderer.useLegacyLights = false;
 
 					composer = new EffectComposer( renderer );
 					composer.addPass( new RenderPass( scene, camera ) );

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů