virtheart
76168b6927
perf: 玻璃模型 3.18MB→1.53MB / 1.44MB→0.75MB — gltf→glb+KHR 顶点量化
...
gltf-transform dedup/prune/weld/quantize/sparse,几何未简化(simplify 会伤玻璃折射精度)。KHR_mesh_quantization 为 GLTFLoader 原生支持,无需 Draco/Meshopt 解码器;base64 内嵌 buffer 转 glb 二进制直接省 33% 开销。同步更新 GlassModels URL 与 loadingBus REQUIRED key。
2026-09-04 17:05:37 +08:00
virtheart
6454a51fd0
fix: 移动端玻璃模型锚点漂移 — section 几何改为每帧实时读取(原版 sX)
...
移动端 dvh 随地址栏收起/展开变化,h-dvh 的 hero/footer 布局随之平移,部分浏览器不派发 window resize,一次性 offsetTop 测量过期导致模型漂移。FooterModel 移除 useState 测量,改传 sectionElId="contact" 由 GlassModel 每帧 getBoundingClientRect + scrollY 重算,元素缺失时回落静态 props。
2026-09-04 15:15:32 +08:00
virtheart
9c86ecc338
fix: Dark 主题玻璃模型失色 — uniforms 穿透材质 ref + FBO HalfFloatType
2026-09-04 13:23:18 +08:00
virtheart
a2936fb39c
fix: 移动端玻璃模型折射 loop 钳制 — 对齐原版移动端分支
...
原版 apply effect: t=O?Math.min(B.loop,2):B.loop(O=isMobileWidth),
uRgbRefraction=+(t<=3)。移动端 loop=2 少一轮折射采样,色散/亮度观感
与桌面不同。移植版此前移动端仍用 3,导致移动端(含 Dark 主题下的
Hello/cursor)观感与原版有差异。
2026-09-03 00:28:28 +08:00
virtheart
27ed0fbf79
fix: Dark 主题玻璃模型颜色偏差 — Hard Light 选择器对齐原版
...
原版按 tint 色逐通道 step(vec3(0.5), blend) 选择 multiply/screen;
移植时误写成按 base 标量 step(0.5, base)。Beer-Lambert 分支(Light)
不受影响,Dark 分支(uDark=1 Hard-Light 双色调)因选择器变量错误
导致整体色偏,尤其 tint 色 #64c3ff/#8e9dc4 各通道跨 0.5 时。
与原版逐行 diff 玻璃 fragment shader 确认无其它实质差异。
2026-09-02 23:07:57 +08:00
virtheart
d5a1228aac
feat: 暗色主题 + /2026 详情页 + 逐页标题 — 对齐原站剩余缺口
...
- 暗色主题 1:1:ThemeModeProvider 原逻辑(localStorage 'theme'
light/dark/system、system 跟随 prefers-color-scheme、<html> class 切换),
CSS tokens 按原站 .dark 块翻值(--label/--background-deep/--code-*);
shellMedia 重构为 useSyncExternalStore 单例 store(Header 与 Canvas 共享)
- WebGL 主题分支:BackgroundFX 暗色渐变(#2c4bd5/#00000d/#00344C +
outputMix .95/edgeIntensity -.82,原 sj 配置)、DotOverlay #0F1111、
LoadingCurtain #191b1b、玻璃模型暗色参数组(shininess 100/fresnel .72/
brightness .6/uDark=1 Hard-Light)与暗色 tint(hello #64c3ff、
footer #8e9dc4/#64c3ff)
- /2026 路由:rewrite 补 2026(此前 404),workArticles 增加 /2026 占位文章
(原站内容被服务端口令保密无法读取,已注释说明);解锁屏→刷新→服务端
放行全链路 CDP 验证通过
- 逐页 <title>:app/work/[slug]/layout.tsx generateMetadata 映射作品名
(reunimos→Reunimos™),受保护 /2026 未解锁时 SSR 'Protected'(原站行为),
根标题改回原站 'HAOQI©2026'
2026-09-02 14:31:28 +08:00
virtheart
6b1f329231
feat: 移植 hyper-space 超空间区块(cursor.glb 条纹箭头 + 8vh 滚动叙事)与箭头全屏白模式
...
- HyperspaceModel.tsx:1:1 移植原站 cx——cursor.glb 合并几何、屏幕矩形追踪(12 帧缓存+滚动增量修正)、restScale 0.1→峰值 hypot(vw,vh)×1.64/radius 的吞噬缩放(damp 32/s)、shrink 折叠、条纹 shader(uStripeReveal 蓝底→黑底星空放射)、scaleSpinDegrees 180 收拢自旋、指针跟随高光
- HyperSpaceSection.tsx:8 视口高 + sticky,段位推进 seg0-primary/secondary(Innovate with purpose / human touch)→ seg1(进度环 + 四段主张)→ end(FUTURE-FIRST/ALWAYS);逐字符哈希延迟 stagger(hsstFadeIn/Out)
- arrowFullscreen.ts:原站 module 1111 进度 store(setDampedScaleT 阈值翻转订阅,header 0.5 阈值白模式、section 0.5 白模式同步)
- Header:箭头过阈值后整体转白(ARROW_FULLSCREEN_DOM_COLOR_TRANSITION)
- 修复:main 不再是滚动容器(原站 sticky 依赖内部滚动,我们的 Lenis 是窗口级,sticky 永不钉住导致末段文案不出现)
- scrollBus 增加 subscribeScroll/notifyScroll 供 DOM 侧响应式读取;useLightController 从 GlassModels 导出复用
- 验证:glError=0 无反馈环;段位推进/白模式触发与回落/区块顺序 全部 CDP 行为探针通过;build+tsc 通过
2026-09-01 17:38:56 +08:00
virtheart
903b79dd2b
fix: 玻璃 mesh 改为仅 layer 10,消除折射 FBO 反馈环(GL_INVALID_OPERATION 每帧刷屏的根源)
...
- 原 enable(10) 会叠加层,mesh 仍留在 layer 0,被 layer-0 mask 的 FBO 通道画进自己采样的折射纹理 → 反馈环
- 现在 FBO 通道的 layer-0 mask 能真正排除玻璃;主相机 enable(10) 保持可见
- 验证:全组件开启 gl.getError()=0(修复前恒 1282),next build / tsc 通过
2026-09-01 16:37:27 +08:00
virtheart
e3e5a3663e
feat: 添加 FooterSection 组件,更新页面结构以包含联系信息;优化 ScrambleReveal 组件以支持反向字符揭示
2026-09-01 15:19:31 +08:00
virtheart
ce08eabf62
feat: 移植原版背景/点阵遮罩/入场幕布,修复贴纸淡出与 cursor 颜色
...
- BackgroundFX: 1:1 移植原版 sz 多通道程序化背景(vignette→swirl→sine→shatter→bokeh→output,30% 分辨率 ping-pong,指针跟随、进度门控跳帧)
- DotOverlay: 移植原版 s1 滚动点阵遮罩(renderOrder 10,uOpacity=sT(sP))——贴纸随滚动溶入页面底色的原版机制
- LoadingCurtain+LoadingOverlay: 移植原版入场流程(径向圆洞幕布 + MaskedDots 点阵化后处理 + 居中进度条,字体/重资产 5:5 计时轴)
- sP 修正: f2 无 footer 时取 1(原版语义),相机 lerp(24,32,sP) 拉远恢复;视差 y 系数修正为 0.6
- 相机: ready 门控 intro dolly(lerp(A+8,A,customCubic),1.2s)+ 鼠标视差(lag .18/leave .05)
- GlassModels: cursor 贴色修正为亮色主题 #009dff/#009dff;新增指针跟随高光控制器 ca()
- 刷新回顶: scrollRestoration=manual + pageshow(bfcache) 双 rAF 重置 + lenis immediate
- 新增 lib/pointer.ts、lib/loadingBus.ts、lib/customCubic.ts;loadingBus 打点: 模型/贴纸/about 图
2026-09-01 02:00:54 +08:00
virtheart
e4a6ea937a
feat: 更新玻璃模型和英雄场景,优化贴纸层的渲染逻辑
2026-09-01 00:16:54 +08:00
virtheart
744ec0becc
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.
2026-08-31 23:39:58 +08:00