Spaces:
Paused
Paused
STUDIUS X1: polish (no edge-on ring line, softer core on LOW)
Browse files- app.js +2 -2
- index.html +1 -1
app.js
CHANGED
|
@@ -89,7 +89,7 @@ const goldMat = new THREE.MeshPhysicalMaterial({ color: 0xe8b84a, metalness: 1,
|
|
| 89 |
const rings = [[2.55, .028, 1.2, 0, .12], [2.95, .016, 1.75, .5, -.08], [3.4, .04, 1.45, -.35, .05]].map(([R, tube, rx, ry, sp]) => {
|
| 90 |
const m = new THREE.Mesh(new THREE.TorusGeometry(R, tube, 32, 300), goldMat); m.rotation.set(rx, ry, 0); m.userData.sp = sp; m.castShadow = true; orb.add(m); return m; });
|
| 91 |
// fine tick ring (flat)
|
| 92 |
-
{ const g = new THREE.RingGeometry(4.1, 4.13, 256); const m = new THREE.Mesh(g, new THREE.MeshBasicMaterial({ color: GOLD, transparent: true, opacity: .25, side: THREE.DoubleSide })); m.rotation.x = Math.PI / 2 + .32; m.rotation.y = .2; orb.add(m); }
|
| 93 |
// studio satellites
|
| 94 |
const satGeo = new THREE.SphereGeometry(.16, 48, 48);
|
| 95 |
const sats = STUDIOS.map((s, i) => {
|
|
@@ -112,7 +112,7 @@ function applyQuality() {
|
|
| 112 |
renderer.setPixelRatio(hi ? Math.min(devicePixelRatio, 2) : Math.min(devicePixelRatio, 1)); renderer.setSize(innerWidth, innerHeight, false);
|
| 113 |
if (composer) { composer.setPixelRatio(renderer.getPixelRatio()); composer.setSize(innerWidth, innerHeight); }
|
| 114 |
renderer.shadowMap.enabled = hi; key.castShadow = hi;
|
| 115 |
-
glassMat.transmission = hi ? 1 : 0; glassMat.opacity = hi ? 1 : .07; glassMat.iridescence = hi ? .35 : 0; glassMat.needsUpdate = true; energyMat.uniforms.gain.value = hi ? .5 :
|
| 116 |
pGeo.setDrawRange(0, hi ? PN : PN / 2 | 0);
|
| 117 |
$('#q').textContent = (qMode === 'AUTO' ? 'AUTO · ' : '') + (hi ? 'HIGH' : 'LOW'); syncSettings();
|
| 118 |
}
|
|
|
|
| 89 |
const rings = [[2.55, .028, 1.2, 0, .12], [2.95, .016, 1.75, .5, -.08], [3.4, .04, 1.45, -.35, .05]].map(([R, tube, rx, ry, sp]) => {
|
| 90 |
const m = new THREE.Mesh(new THREE.TorusGeometry(R, tube, 32, 300), goldMat); m.rotation.set(rx, ry, 0); m.userData.sp = sp; m.castShadow = true; orb.add(m); return m; });
|
| 91 |
// fine tick ring (flat)
|
| 92 |
+
{ const g = new THREE.RingGeometry(4.1, 4.13, 256); const m = new THREE.Mesh(g, new THREE.MeshBasicMaterial({ color: GOLD, transparent: true, opacity: .25, side: THREE.DoubleSide })); m.rotation.x = Math.PI / 2 + .32; m.rotation.y = .2; m.visible = false; orb.add(m); }
|
| 93 |
// studio satellites
|
| 94 |
const satGeo = new THREE.SphereGeometry(.16, 48, 48);
|
| 95 |
const sats = STUDIOS.map((s, i) => {
|
|
|
|
| 112 |
renderer.setPixelRatio(hi ? Math.min(devicePixelRatio, 2) : Math.min(devicePixelRatio, 1)); renderer.setSize(innerWidth, innerHeight, false);
|
| 113 |
if (composer) { composer.setPixelRatio(renderer.getPixelRatio()); composer.setSize(innerWidth, innerHeight); }
|
| 114 |
renderer.shadowMap.enabled = hi; key.castShadow = hi;
|
| 115 |
+
glassMat.transmission = hi ? 1 : 0; glassMat.opacity = hi ? 1 : .07; glassMat.iridescence = hi ? .35 : 0; glassMat.needsUpdate = true; energyMat.uniforms.gain.value = hi ? .5 : .72;
|
| 116 |
pGeo.setDrawRange(0, hi ? PN : PN / 2 | 0);
|
| 117 |
$('#q').textContent = (qMode === 'AUTO' ? 'AUTO · ' : '') + (hi ? 'HIGH' : 'LOW'); syncSettings();
|
| 118 |
}
|
index.html
CHANGED
|
@@ -89,6 +89,6 @@
|
|
| 89 |
|
| 90 |
<a id="bmc" href="https://www.buymeacoffee.com/2btainment" target="_blank" rel="noopener noreferrer">Buy me a coffee</a>
|
| 91 |
<noscript><p style="color:#f2c94c;padding:2em">STUDIUS braucht JavaScript.</p></noscript>
|
| 92 |
-
<script type="module" src="app.js?v=
|
| 93 |
</body>
|
| 94 |
</html>
|
|
|
|
| 89 |
|
| 90 |
<a id="bmc" href="https://www.buymeacoffee.com/2btainment" target="_blank" rel="noopener noreferrer">Buy me a coffee</a>
|
| 91 |
<noscript><p style="color:#f2c94c;padding:2em">STUDIUS braucht JavaScript.</p></noscript>
|
| 92 |
+
<script type="module" src="app.js?v=13"></script>
|
| 93 |
</body>
|
| 94 |
</html>
|