FIX: incorrect blurring of objects close to camera

This commit is contained in:
sphynx-owner
2024-07-28 21:17:44 +03:00
parent da1150cd3d
commit 66f81fe0bf

View File

@ -164,7 +164,7 @@ void main()
// fill in gaps in base velocity (skybox, z velocity)
vec3 base_velocity = vec3(textureLod(vector_sampler, uvn, 0.0).xy + mix(vec2(0), camera_uv_change.xy, step(depth, 0.)), camera_uv_change.z);
// fsr just makes it so values are larger than 1, I assume its the only case when it happens
if(params.is_fsr2 > 0.5 && dot(base_velocity, base_velocity) >= 1)
if(params.is_fsr2 > 0.5 && dot(base_velocity.xy, base_velocity.xy) >= 1)
{
base_velocity = camera_uv_change;
}