feat: add glass models with advanced refractive shader and integrate into hero scene

- Introduced GlassModels component with custom vertex and fragment shaders for realistic glass effects.
- Updated HeroScene to include HelloModel and CursorStar components, utilizing the new glass shader.
- Enhanced Header component with ScrambleReveal for dynamic text display and local clock functionality.
- Implemented useIsMobile hook to adapt rendering based on screen size.
- Adjusted StickerLayer to ensure falling stickers are captured in the glass models' FBO pass.
This commit is contained in:
2026-08-31 23:39:58 +08:00
parent 836239beca
commit 744ec0becc
8 changed files with 905 additions and 44 deletions
+3
View File
@@ -323,6 +323,9 @@ export class StickerLayer {
);
mesh.frustumCulled = false;
mesh.count = 0;
// Layer 1: the glass models' FBO pass captures only this layer, so the
// falling stickers appear refracted through the hello/cursor glass.
mesh.layers.set(1);
this.geometry = geometry;
this.material = material;