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 May 23, 2023
1 parent 1739815 commit d4116b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified examples/screenshots/webgl_materials_car.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/webgl_materials_car.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
camera.position.set( 4.25, 1.4, - 4.5 );

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

Expand All @@ -108,7 +108,7 @@
// materials

const bodyMaterial = new THREE.MeshPhysicalMaterial( {
color: 0xff0000, metalness: 1.0, roughness: 0.5, clearcoat: 1.0, clearcoatRoughness: 0.03, sheen: 0.5
color: 0xff0000, metalness: 1.0, roughness: 0.5, clearcoat: 1.0, clearcoatRoughness: 0.03
} );

const detailsMaterial = new THREE.MeshStandardMaterial( {
Expand Down

0 comments on commit d4116b5

Please sign in to comment.