Compare commits
2 Commits
v0.0.3-dev
...
v0.0.5-dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 1cc36cb9f7 | |||
| 27ed0fbf79 |
@@ -213,11 +213,14 @@ void main() {
|
|||||||
float tintK_hard = clamp(uTintEnabled, 0.0, 1.0) * clamp(uTintMix, 0.0, 1.0) * tintAlpha;
|
float tintK_hard = clamp(uTintEnabled, 0.0, 1.0) * clamp(uTintMix, 0.0, 1.0) * tintAlpha;
|
||||||
vec3 baseClamped = clamp(color, 0.0, 1.0);
|
vec3 baseClamped = clamp(color, 0.0, 1.0);
|
||||||
vec3 blendClamped = clamp(tintColorGradient.rgb, 0.0, 1.0);
|
vec3 blendClamped = clamp(tintColorGradient.rgb, 0.0, 1.0);
|
||||||
// Hard Light blend: 2*blend*base where base < 0.5, screen elsewhere
|
// Hard Light blend(原版逐通道):blend 通道 > 0.5 → screen,否则 multiply。
|
||||||
|
// 注意选择器是 blend(tint 色)而非 base —— 暗色主题的 #64c3ff/#8e9dc4
|
||||||
|
// 各通道跨 0.5,选错变量会导致 Dark 下模型颜色整体偏差。
|
||||||
|
vec3 h = step(vec3(0.5), blendClamped);
|
||||||
vec3 hard = mix(
|
vec3 hard = mix(
|
||||||
2.0 * blendClamped * baseClamped,
|
2.0 * baseClamped * blendClamped,
|
||||||
1.0 - 2.0 * (1.0 - blendClamped) * (1.0 - baseClamped),
|
1.0 - 2.0 * (1.0 - blendClamped) * (1.0 - baseClamped),
|
||||||
step(0.5, baseClamped)
|
h
|
||||||
);
|
);
|
||||||
vec3 hardColor = mix(color, hard, tintK_hard);
|
vec3 hardColor = mix(color, hard, tintK_hard);
|
||||||
|
|
||||||
|
|||||||
@@ -423,7 +423,11 @@ export function LoadingCurtain({
|
|||||||
// dedicated fullscreen fixed wrapper gives the container a real viewport
|
// dedicated fullscreen fixed wrapper gives the container a real viewport
|
||||||
// box; pointer-events:none inherits to the whole subtree.
|
// box; pointer-events:none inherits to the whole subtree.
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[60] pointer-events-none">
|
// 原版这块幕布 Canvas 是 "z-30 fixed inset-0 pointer-events-none":
|
||||||
|
// 盖住页面内容(≤z-20),但必须低于移动端全屏菜单(z-40)、
|
||||||
|
// 进度条(z-40)与 Header(z-50)——曾写成 z-[60] 会把菜单整个
|
||||||
|
// 压在幕布下面,移动端打开菜单只剩一片背景色。
|
||||||
|
<div className="fixed inset-0 z-30 pointer-events-none">
|
||||||
<Canvas
|
<Canvas
|
||||||
dpr={[1, 2]}
|
dpr={[1, 2]}
|
||||||
frameloop="demand"
|
frameloop="demand"
|
||||||
|
|||||||
Reference in New Issue
Block a user