2Btainment commited on
Commit
71c1d59
·
verified ·
1 Parent(s): 672ff94

STUDIUS X1: hide closed card outline, shadow-only floor

Browse files
Files changed (3) hide show
  1. app.js +1 -1
  2. index.html +2 -2
  3. style.css +2 -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, 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);
 
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.ShadowMaterial({ opacity: .45, color: 0x000000 })); 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
@@ -9,7 +9,7 @@
9
  <title>STUDIUS · DAS Studio — Einswarm</title>
10
  <link rel="icon" href="assets/einswarm-mascot.webp">
11
  <link rel="preload" href="fonts/outfit-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
12
- <link rel="stylesheet" href="style.css?v=10">
13
  </head>
14
  <body>
15
  <canvas id="gl"></canvas>
@@ -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=14"></script>
93
  </body>
94
  </html>
 
9
  <title>STUDIUS · DAS Studio — Einswarm</title>
10
  <link rel="icon" href="assets/einswarm-mascot.webp">
11
  <link rel="preload" href="fonts/outfit-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
12
+ <link rel="stylesheet" href="style.css?v=12">
13
  </head>
14
  <body>
15
  <canvas id="gl"></canvas>
 
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=16"></script>
93
  </body>
94
  </html>
style.css CHANGED
@@ -9,6 +9,7 @@
9
  font-family:Outfit,system-ui,-apple-system,"Segoe UI",sans-serif;
10
  }
11
  *{box-sizing:border-box}
 
12
  html,body{margin:0;height:100%;overflow:hidden;background:var(--bk);color:var(--txt);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
13
  button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
14
  #gl{position:fixed;inset:0;width:100%;height:100%;display:block;z-index:0}
@@ -82,7 +83,7 @@ body.no3d #bg2d{display:block}
82
  .primary:hover,.primary:focus-visible{transform:scale(1.05);box-shadow:0 14px 40px rgba(242,201,76,.4),inset 0 1px 0 rgba(255,255,255,.5);outline:none}
83
  .meta{font-size:13px;color:var(--dim)}
84
  #hero.swap h2,#hero.swap p,#hero.swap .hcat{animation:heroIn .55s var(--ease)}
85
- @keyframes heroIn{from{opacity:0;transform:translateX(-14px)}}
86
  /* rows + tiles */
87
  .row h3{margin:0 0 12px;font-size:15px;font-weight:600;color:var(--txt);letter-spacing:.01em}
88
  .row h3 span{color:var(--dim);font-weight:400;margin-left:8px}
 
9
  font-family:Outfit,system-ui,-apple-system,"Segoe UI",sans-serif;
10
  }
11
  *{box-sizing:border-box}
12
+ [hidden]{display:none!important}
13
  html,body{margin:0;height:100%;overflow:hidden;background:var(--bk);color:var(--txt);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
14
  button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
15
  #gl{position:fixed;inset:0;width:100%;height:100%;display:block;z-index:0}
 
83
  .primary:hover,.primary:focus-visible{transform:scale(1.05);box-shadow:0 14px 40px rgba(242,201,76,.4),inset 0 1px 0 rgba(255,255,255,.5);outline:none}
84
  .meta{font-size:13px;color:var(--dim)}
85
  #hero.swap h2,#hero.swap p,#hero.swap .hcat{animation:heroIn .55s var(--ease)}
86
+ @keyframes heroIn{from{opacity:.3;transform:translateX(-14px)}}
87
  /* rows + tiles */
88
  .row h3{margin:0 0 12px;font-size:15px;font-weight:600;color:var(--txt);letter-spacing:.01em}
89
  .row h3 span{color:var(--dim);font-weight:400;margin-left:8px}