Skip to content
This repository was archived by the owner on Dec 21, 2025. It is now read-only.

Commit 6dd6a20

Browse files
Update multiple mobile viewers
1 parent 45bdaa5 commit 6dd6a20

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

viewers/templates/Mobile/MPDB Viewer.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,13 @@
410410
color = new THREE.Color();
411411
root = new THREE.Group();
412412

413-
boxGeometry = new THREE.BoxGeometry( 1, 1, 1 );
414-
boxMaterial = new THREE.MeshStandardMaterial( { metalness: 0.3, roughness: 0.8 } );
413+
boxGeometry = new THREE.BoxGeometry( 0.5, 0.5, 0.5 );
414+
boxMaterial = new THREE.MeshBasicMaterial( { color: 0xdfdfdf } );
415415

416416
sphereGeometry = new THREE.IcosahedronGeometry( 1, 2 );
417417
sphereMaterial = new THREE.MeshStandardMaterial( { metalness: 0.5, roughness: 0.5 } );
418418

419-
labelMaterial = new THREE.MeshStandardMaterial( { metalness: 0.6, roughness: 1 } );
419+
labelMaterial = new THREE.MeshBasicMaterial();
420420

421421
console.time( 'Loading Time' );
422422
document.getElementById('div_error').style.display = 'none';
@@ -833,7 +833,7 @@
833833
font: label_font,
834834
size: 1,
835835
depth: 0.025,
836-
curveSegments: 4,
836+
curveSegments: 3,
837837
bevelEnabled: false
838838
} );
839839

@@ -889,7 +889,7 @@
889889

890890
mesh.position.copy( start );
891891
mesh.position.lerp( end, 0.5 );
892-
mesh.scale.set( 5, 5, start.distanceTo( end ) );
892+
mesh.scale.set( 5, 5, start.distanceTo( end ) * 2 );
893893
mesh.lookAt( end );
894894
mesh.updateMatrix();
895895

viewers/templates/Mobile/MPDB WebGPU.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -457,18 +457,13 @@
457457
color = new THREE.Color();
458458
root = new THREE.Group();
459459

460-
boxGeometry = new THREE.BoxGeometry( 1, 1, 1 );
461-
boxMaterial = new THREE.MeshStandardNodeMaterial( { metalness: 0.3, roughness: 0.7 } );
460+
boxGeometry = new THREE.BoxGeometry( 0.5, 0.5, 0.5 );
461+
boxMaterial = new THREE.MeshBasicNodeMaterial( { color: 0xdfdfdf } );
462462

463463
sphereGeometry = new THREE.IcosahedronGeometry( 1, 2 );
464464
sphereMaterial = new THREE.MeshStandardNodeMaterial( { metalness: 0.5, roughness: 0.5 } );
465465

466-
labelMaterial = new THREE.MeshStandardNodeMaterial( {
467-
emissive: new THREE.Color( 0.1, 0.1, 0.1 ),
468-
emissiveIntensity: 0.35,
469-
metalness: 0.5,
470-
roughness: 0.9
471-
} );
466+
labelMaterial = new THREE.MeshBasicNodeMaterial();
472467

473468
console.time( 'Loading Time' );
474469
document.getElementById('div_error').style.display = 'none';
@@ -929,7 +924,7 @@
929924
font: label_font,
930925
size: 1,
931926
depth: 0.025,
932-
curveSegments: 4,
927+
curveSegments: 3,
933928
bevelEnabled: false
934929
} );
935930

@@ -985,7 +980,7 @@
985980

986981
mesh.position.copy( start );
987982
mesh.position.lerp( end, 0.5 );
988-
mesh.scale.set( 5, 5, start.distanceTo( end ) );
983+
mesh.scale.set( 5, 5, start.distanceTo( end ) * 2 );
989984
mesh.lookAt( end );
990985
mesh.updateMatrix();
991986

0 commit comments

Comments
 (0)