Commit Graph

2 Commits

Author SHA1 Message Date
virtheart 71825606a4 fix: 拖尾方块塌缩(displayMetrics 未应用导致 trail 永不 shift)+ hyper-space 文字层级
- PostFX: setDisplayMetrics 原挂在 resize effect,但 effectComposer ref 尚未就绪时 return,之后 size 不变不再重跑 → cssResolution 停在 (1,1),JS 端 16px 单元格换算成 16 个 UV 宽,lastPointerCell 永不前进,尾迹数组从不 shift,只剩 trail[0] 一个方块。改为 useFrame 内按尺寸+dpr 变更键控应用(原站 useFrame 每帧调用等价语义)
- HyperSpaceSection: 文字容器补 z-30。原站整个 main 内容堆叠在 canvas 宿主之上(canvas fixed z-auto 在 main 前),文字永远在 WebGL 之上;我们 canvas 是 z-30 fixed,hyper-space 漏加 z-30 被箭头不透明底盖住,Innovate with purpose / 四段主张 / FUTURE-FIRST 全部不可见
- 验证:covered 区尾迹 cells 展开+strengths 衰减+空闲淡出;seg0 字符 opacity=1 且 section 在 canvas 之上;build+tsc 通过
2026-09-01 18:56:52 +08:00
virtheart 3a3e0a5fcb feat: add PostFX component and webgl PostFxPasses for enhanced visual effects
- Introduced PostFX component for managing post-processing effects including LensFlarePass and FluidPushPass.
- Implemented LensFlarePass for star streak effects on bright pixels with customizable parameters.
- Developed FluidPushPass for GPU fluid simulation, allowing pointer-driven splats and visual refractive effects.
- Added utility functions for motion reduction detection and viewport section visibility checks.
- Established a comprehensive rendering pipeline with dynamic adjustments based on device metrics and user interactions.
2026-09-01 12:22:16 +08:00