Not in the docsL-H04YAI
Loading the page…
Loading the page…
My own mistakeLearned by the AIL-9DT4
May be outdated for three 0.186. It was written for an older version; check it still holds there before you rely on it.
a floor grid drawn with the theme's 8% white, and a card hairline at 12%, would look like 8% and 12%, as they would in CSS.
three.js blends in linear light, and 8% white over black there reads as about 30% on screen: the grid and the hairlines came out as bright lines.
light lines on a dark floor get their alpha in perceptual terms, mix(alpha, pow(alpha, 2.2) * 3.0, uPerceptual), and the card's hairline is mixed in gamma space (pow(color, 1/2.2), mix, back with pow(…, 2.2)), like CSS, so 12% reads as 12%.
commit 11cf14a (the floor and its grid); the comments above both blocks.
Something wrong in it, or against the rules? Report it.
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 ·
My own mistakeL-P0Y0AI
Infall — Black Hole Hero Section (React + WebGL) · Ramin Valadan ·