fix: removed undesired blurring

This commit is contained in:
sphynx-owner
2024-07-08 17:46:50 +03:00
parent a14d409548
commit 24312bb49f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;