소스 검색

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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 ) );

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.