Skip to content

Commit

Permalink
Docs: material browser clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Mar 24, 2021
1 parent e93bffa commit 9fb402c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/scenes/material-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@
function chooseFromHash( gui, mesh, geometry ) {

const selectedMaterial = window.location.hash.substring( 1 ) || 'MeshBasicMaterial';

let material;

switch ( selectedMaterial ) {
Expand Down Expand Up @@ -729,8 +730,8 @@
scene.background = new THREE.Color( 0x444444 );
scene.environment = pmremGenerator.fromScene( environment ).texture;

const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 10, 50 );
camera.position.z = 30;
const camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 10, 100 );
camera.position.z = 35;

const ambientLight = new THREE.AmbientLight( 0x000000 );
scene.add( ambientLight );
Expand All @@ -749,8 +750,7 @@

guiScene( gui, scene, camera );

let geometry = new THREE.TorusKnotGeometry( 10, 3, 100, 16 );
geometry = geometry.toNonIndexed();
const geometry = new THREE.TorusKnotGeometry( 10, 3, 200, 32 ).toNonIndexed();

generateVertexColors( geometry );

Expand Down

0 comments on commit 9fb402c

Please sign in to comment.