Browse Source

stepped too far

Kajetan Johannes Hammerle 3 years ago
parent
commit
e9ca915257
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/fragment.fs

+ 2 - 2
resources/fragment.fs

@@ -49,7 +49,7 @@ void main(void) {
             hit_h += is_first_hit * h;
             prev_hits += is_first_hit;
         }
-        hit_h = max(0.0, hit_h);
+        hit_h = max(0.0, hit_h - step);
 
         h = hit_h;
         prev_hits = 0;
@@ -73,4 +73,4 @@ void main(void) {
     normal = normalize(normal * 2.0 - 1.0);
     float l = max(dot(-light, normal), 0.0) * 0.7 + 0.3;
     color = vec4(texture(textureSamp, tex).xyz * l, 1.0);
-}
+}