|
@@ -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);
|
|
|
-}
|
|
|
+}
|