fix DOF autofocus focal point not scaling with TAAU

This commit is contained in:
Xonk
2024-06-27 15:23:50 -04:00
parent 9ab0412f72
commit 810c1dd0f8
4 changed files with 3 additions and 5 deletions

View File

@ -257,7 +257,7 @@ void main() {
// exposure = mix(0.0, 1.0, min(targetExposure,1.0));
// exposure = 1;
float currCenterDepth = ld(texture2D(depthtex2, vec2(0.5)).r);
float currCenterDepth = ld(texture2D(depthtex2, vec2(0.5)*RENDER_SCALE).r);
centerDepth = mix(sqrt(texelFetch2D(colortex4,ivec2(14,37),0).g/65000.0), currCenterDepth, clamp(DoF_Adaptation_Speed*exp(-0.016/frameTime+1.0)/(6.0+currCenterDepth*far),0.0,1.0));
centerDepth = centerDepth * centerDepth * 65000.0;