feat: 更新玻璃模型和英雄场景,优化贴纸层的渲染逻辑
This commit is contained in:
@@ -12,11 +12,12 @@ import { useIsMobile } from "@/lib/useIsMobile";
|
||||
/**
|
||||
* Hero canvas: falling stickers + glass hello/cursor models.
|
||||
*
|
||||
* The glass shader refracts a scene texture rendered into an FBO from layer 1.
|
||||
* BackgroundGrid lives in the DOM (below the canvas), so it can't be refracted;
|
||||
* the FBO pass still captures the sticker particles, giving the glass its
|
||||
* refraction content — the same hierarchy the original achieves with its
|
||||
* "glass hosting section" FBO.
|
||||
* The glass shader refracts a scene texture rendered into an FBO with a
|
||||
* layer-0 camera mask (stickers/background), matching the original
|
||||
* "glass hosting section" FBO. Glass meshes enable layer 10 so they are
|
||||
* excluded from their own refraction pass.
|
||||
* Models animate only from scroll (entry/after targets, damp 6) — no
|
||||
* time-based motion besides the desktop float bob.
|
||||
*/
|
||||
|
||||
export function HeroScene() {
|
||||
@@ -36,7 +37,8 @@ export function HeroScene() {
|
||||
<StickerCamera />
|
||||
|
||||
{/* Falling stickers: 1:1 re-implementation of the original particle system.
|
||||
Rendered on layer 1 so the glass FBO pass can capture them. */}
|
||||
Live on layer 0 — visible to the main camera and captured by the
|
||||
glass FBO pass (which renders with a layer-0 camera mask). */}
|
||||
<StickerDrop />
|
||||
|
||||
{/* Glass hero models (hello + blue cursor star), refractive tint shader */}
|
||||
|
||||
Reference in New Issue
Block a user