Merge pull request #56843 from Calinou/ssr-fix-background-line
Fix visible background line in intersections in screen-space reflections (3.x)
This commit is contained in:
commit
11a3fabc92
@ -186,8 +186,7 @@ void main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vec2 final_pos;
|
vec2 final_pos;
|
||||||
float grad;
|
float grad = (steps_taken + 1.0) / float(num_steps);
|
||||||
grad = steps_taken / float(num_steps);
|
|
||||||
float initial_fade = curve_fade_in == 0.0 ? 1.0 : pow(clamp(grad, 0.0, 1.0), curve_fade_in);
|
float initial_fade = curve_fade_in == 0.0 ? 1.0 : pow(clamp(grad, 0.0, 1.0), curve_fade_in);
|
||||||
float fade = pow(clamp(1.0 - grad, 0.0, 1.0), distance_fade) * initial_fade;
|
float fade = pow(clamp(1.0 - grad, 0.0, 1.0), distance_fade) * initial_fade;
|
||||||
final_pos = pos;
|
final_pos = pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user