Skip to content

Commit

Permalink
Fix 'car' WebGL example not working in playground (#27757)
Browse files Browse the repository at this point in the history
* Fix car WebGL example not working in playground

* Update index.html

Remove deprecated code.

---------

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
  • Loading branch information
abc013 and Mugen87 committed Feb 16, 2024
1 parent 0bf3908 commit a9db0d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/examples/webgl/car.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions playground/index.html
Expand Up @@ -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();
Expand All @@ -117,7 +117,6 @@
} else {

renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.useLegacyLights = false;

composer = new EffectComposer( renderer );
composer.addPass( new RenderPass( scene, camera ) );
Expand Down

0 comments on commit a9db0d3

Please sign in to comment.