瀏覽代碼

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 1 年之前
父節點
當前提交
a9db0d3839
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 0
      playground/examples/webgl/car.json
  2. 1 2
      playground/index.html

File diff suppressed because it is too large
+ 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 ) );

Some files were not shown because too many files changed in this diff