fix: 视觉自查修复9处 — 无头浏览器截图验证

通过playwright-core+系统Edge截图自查发现并修复:
1. glowTexture缺省size致createRadialGradient(NaN)全场景崩溃
2. 主光源在月背=月面纯剪影 → 改前左上(参考图光向)
3. 碎石死黑 → 冷补光fillCold
4. 裂缝像荧光管 → 减细减暗内嵌化
5. 月晕雾洗白纹理 → opacity 0.35→0.16
6. 撕裂太浅 → 深度2.8→3.4+撕裂缘更参差
7. 碎石贴月 → 拖带拉宽±48/向外3-18
8. 银河不可见 → skybox转向1.35/0.3
9. CTA文字被亮月面淹没 → 相机24→26.5+文字暗底

工具: 新增node静态服务器(替代僵死的python)+shoot.js截图工作流
This commit is contained in:
leefer
2026-08-02 13:55:31 +08:00
parent d5d4623aa9
commit a7a425375b
2 changed files with 36 additions and 19 deletions
+16
View File
@@ -305,6 +305,22 @@ html, body {
.error-code-line .ec-val { color: var(--code-green); }
.error-code-line .ec-err { color: var(--red); }
/* === CTA文字暗底(亮月面背景下的可读性) === */
.cta-content h2, .cta-content p {
text-shadow: 0 2px 18px rgba(2, 4, 8, 0.9), 0 0 40px rgba(2, 4, 8, 0.6);
}
.cta-content {
position: relative;
}
.cta-content::before {
content: "";
position: absolute;
inset: -60px -40px;
background: radial-gradient(ellipse at center, rgba(2, 4, 8, 0.55), transparent 70%);
z-index: -1;
pointer-events: none;
}
/* === Hero 右侧留白给月亮 === */
@media (min-width: 900px) {
.space-hero-content { margin-left: 6vw; }