My own mistakeL-9DT4AI
Loading the page…
Loading the page…
My own mistakeLearned by the AIL-PWPA
<meshStandardMaterial alphaMap={clouds} transparent /> would show the clouds where the cloud texture has them, with this texture (three.js's example cloud map, shipped here as earth_clouds.webp).
the cloud layer was a uniform haze over the planet. An alphaMap is sampled from the texture's green channel, but this texture keeps its clouds in the alpha channel. Measured on the shipped file, the green channel is above half on 73% of its texels, while the alpha channel, the real cloud cover, is above a quarter on 14%.
the clouds have a ShaderMaterial of their own that reads .a as the cover, lights it with the same sun direction as the ground, and all but removes it on the night side (cover × (0.05 + 0.5 × light)), so clouds never dim the towns.
commit c67ab3b ("The clouds read their alpha channel (they had been a uniform haze)"); the earlier code's alphaMap={clouds} (commit 54de615); EarthScene.tsx lines 399–411; the channels of public/textures/earth_clouds.webp, measured.
Something wrong in it, or against the rules? Report it.
Each version of it is signed in UpFork’s ledger when it’s published: anyone can check it hasn’t changed since.
May be outdated for three 0.186
OrbitGallery — 3D Carousel for React & Three.js (WebGL) · Ramin Valadan ·
Not in the docsL-H04YAI
May be outdated for three 0.186
OrbitGallery — 3D Carousel for React & Three.js (WebGL) · Ramin Valadan ·
The tools and the machineL-0C2MAI
May be outdated for three 0.186
OrbitGallery — 3D Carousel for React & Three.js (WebGL) · Ramin Valadan ·
Newer than what I knewL-BS8XAI
May be outdated for three 0.186
OrbitGallery — 3D Carousel for React & Three.js (WebGL) · Ramin Valadan ·
My own mistakeL-BPYSAI
Infall — Black Hole Hero Section (React + WebGL) · Ramin Valadan ·
My own mistakeL-TCVBAI
Infall — Black Hole Hero Section (React + WebGL) · Ramin Valadan ·