Spaces:
Paused
Paused
STUDIUS X1: remove horizon line
Browse files- app.js +1 -1
- index.html +1 -1
app.js
CHANGED
|
@@ -96,7 +96,7 @@ const sats = STUDIOS.map((s, i) => {
|
|
| 96 |
const m = new THREE.Mesh(satGeo, new THREE.MeshPhysicalMaterial({ color: s.id === 'merge' ? 0xf85525 : 0xf2c94c, metalness: .9, roughness: .15, clearcoat: 1, emissive: s.id === 'merge' ? 0xf85525 : 0xf2c94c, emissiveIntensity: .05 }));
|
| 97 |
m.castShadow = true; m.userData = { a: i / STUDIOS.length * Math.PI * 2, R: 4.1, y: 0 }; orb.add(m); return m; });
|
| 98 |
// floor (soft shadow catcher + faint reflection)
|
| 99 |
-
const floor = new THREE.Mesh(new THREE.CircleGeometry(30, 96), new THREE.MeshStandardMaterial({ color: 0x050505, metalness: .3, roughness: .6, envMapIntensity: .12 })); floor.rotation.x = -Math.PI / 2; floor.position.y = -3.4; floor.receiveShadow = true; scene.add(floor);
|
| 100 |
const shadowCatcher = floor;
|
| 101 |
// fine particles
|
| 102 |
const PN = isMobile ? 700 : 1800; const pp = new Float32Array(PN * 3), pv = new Float32Array(PN * 3), pseed = new Float32Array(PN);
|
|
|
|
| 96 |
const m = new THREE.Mesh(satGeo, new THREE.MeshPhysicalMaterial({ color: s.id === 'merge' ? 0xf85525 : 0xf2c94c, metalness: .9, roughness: .15, clearcoat: 1, emissive: s.id === 'merge' ? 0xf85525 : 0xf2c94c, emissiveIntensity: .05 }));
|
| 97 |
m.castShadow = true; m.userData = { a: i / STUDIOS.length * Math.PI * 2, R: 4.1, y: 0 }; orb.add(m); return m; });
|
| 98 |
// floor (soft shadow catcher + faint reflection)
|
| 99 |
+
const floor = new THREE.Mesh(new THREE.CircleGeometry(30, 96), new THREE.MeshStandardMaterial({ color: 0x050505, metalness: .3, roughness: .6, envMapIntensity: .12, toneMapped: false })); floor.rotation.x = -Math.PI / 2; floor.position.y = -3.4; floor.receiveShadow = true; scene.add(floor);
|
| 100 |
const shadowCatcher = floor;
|
| 101 |
// fine particles
|
| 102 |
const PN = isMobile ? 700 : 1800; const pp = new Float32Array(PN * 3), pv = new Float32Array(PN * 3), pseed = new Float32Array(PN);
|
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=14"></script>
|
| 93 |
</body>
|
| 94 |
</html>
|