1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-18 21:16:40 +00:00

make sure distortion respects alpha correctly

This commit is contained in:
Cody Glassman 2025-08-31 12:02:11 -07:00
parent f2a82701b4
commit f9f61b8189

View file

@ -24,7 +24,7 @@ vec4 applyDistortion(in vec4 color, in float strength, in float pixelDepth, in f
} }
distortion.rg = color.rg * 2.0 - 1.0; distortion.rg = color.rg * 2.0 - 1.0;
distortion.rg *= invOcclusion * strength; distortion.rg *= invOcclusion * strength * color.a;
return distortion; return distortion;
} }