mirror of
https://github.com/sphynx-owner/JFA_driven_motion_blur_addon.git
synced 2025-09-19 04:06:08 +08:00
fix: removed undesired blurring
This commit is contained in:
@ -161,7 +161,7 @@ vec4 get_backtracked_sample(vec2 uvn, vec2 chosen_uv, vec2 chosen_velocity, vec4
|
||||
continue;
|
||||
}
|
||||
|
||||
vec2 new_sample = round((uvn - chosen_velocity * velocity_multiplier) * render_size) / render_size;
|
||||
vec2 new_sample = uvn - chosen_velocity * velocity_multiplier;
|
||||
|
||||
if((new_sample.x < 0.) || (new_sample.x > 1.) || (new_sample.y < 0.) || (new_sample.y > 1.))
|
||||
{
|
||||
@ -203,7 +203,7 @@ void main()
|
||||
{
|
||||
return;
|
||||
}
|
||||
vec2 uvn = (vec2(uvi)) / render_size;
|
||||
vec2 uvn = (vec2(uvi) + vec2(0.5)) / render_size;
|
||||
|
||||
int iteration_index = params.iteration_index;
|
||||
|
||||
|
@ -159,7 +159,7 @@ void main()
|
||||
return;
|
||||
}
|
||||
|
||||
vec2 uvn = vec2(uvi) / render_size;
|
||||
vec2 uvn = vec2(uvi + vec2(0.5)) / render_size;
|
||||
|
||||
int iteration_count = int(params.motion_blur_samples);
|
||||
|
||||
@ -195,7 +195,7 @@ void main()
|
||||
|
||||
float total_weight = 1;// max(0.0001, length(naive_velocity));
|
||||
|
||||
vec2 offset = vec2(sample_step * noise_offset);
|
||||
vec2 offset = vec2(0);
|
||||
|
||||
vec4 col = base * total_weight;
|
||||
|
||||
|
Reference in New Issue
Block a user