Rebrand as TPSchedule and refine clear liquid glass dock

This commit is contained in:
Codex
2026-10-13 22:08:20 +08:00
parent 50fcc70e8e
commit 204e945b2e
45 changed files with 1155 additions and 103 deletions
+8 -2
View File
@@ -34,8 +34,14 @@ void main() {
float dispersion = u_strength * rim * 0.65;
colour.r = texture(u_background, sampleUV(ray + normal * dispersion)).r;
colour.b = texture(u_background, sampleUV(ray - normal * dispersion)).b;
float reflection = pow(rim, 4.0) * u_strength * 0.10
* max(0.0, dot(normal, normalize(vec2(-0.5, -0.8))));
// The curved rim catches nearby background light as well as transmitting it.
// Reflection follows live pixels instead of being a painted white outline.
float facing = max(0.0, dot(normal, normalize(vec2(-0.5, -0.8))));
float edge_light = pow(rim, 4.0) * u_strength * facing;
vec4 reflected = texture(u_background,
sampleUV(point + normal * radius * 0.40));
colour = mix(colour, reflected, min(edge_light * 0.18, 0.22));
float reflection = edge_light * 0.07;
colour.rgb = min(colour.rgb + reflection * colour.a, vec3(colour.a));
frag_color = colour;
}