Skip to content

Commit

Permalink
Examples: Improved webgl_materials_car.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 11, 2022
1 parent 89b30b3 commit 7ce01a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/webgl_materials_car.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
camera.position.set( 4.25, 1.4, - 4.5 );

controls = new OrbitControls( camera, container );
controls.enableDamping = true;
controls.maxDistance = 9;
controls.target.set( 0, 0.5, 0 );
controls.update();

Expand Down Expand Up @@ -197,6 +199,8 @@

function render() {

controls.update();

const time = - performance.now() / 1000;

for ( let i = 0; i < wheels.length; i ++ ) {
Expand Down

0 comments on commit 7ce01a4

Please sign in to comment.