This commit is contained in:
2026-03-02 17:21:14 +08:00
parent db0fd98e4f
commit c59c921997
4 changed files with 106 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ void main() {
float vC = texture(uHeightTex, vUV).r;
bool isZero = abs(vC) <= 1e-6;
float t = value01(vC);
float m = maxNeighborValue(vUV);
float m = maxNeighborValueK(vUV, 2);
float eps = max(1e-4, 0.001 * (uMaxV - uMinV));
float force = smoothstep(uMaxV - eps, uMaxV, m);
t = max(t, force);