gsr2 fs depthclip 计算错误

This commit is contained in:
StarBeats 2025-04-29 16:00:37 +08:00
parent a8a769e617
commit a270aabc86

View File

@ -109,7 +109,7 @@ Shader "MRP/SR/GSR2"
float diagonal_length = length(_renderSizeParam.xy); float diagonal_length = length(_renderSizeParam.xy);
float Ksep_Kfov_diagonal = Ksep * Kfov * diagonal_length; float Ksep_Kfov_diagonal = Ksep * Kfov * diagonal_length;
float Depthsep = Ksep_Kfov_diagonal * (1.0 - maxC); float Depthsep = Ksep_Kfov_diagonal * maxC;
float EPSILON = 1.19e-07f; float EPSILON = 1.19e-07f;
Wdepth += clamp((Depthsep / (abs(maxC - btmLeft4) + EPSILON)), 0.0, 1.0); Wdepth += clamp((Depthsep / (abs(maxC - btmLeft4) + EPSILON)), 0.0, 1.0);
Wdepth += clamp((Depthsep / (abs(maxC - btmRight4) + EPSILON)), 0.0, 1.0); Wdepth += clamp((Depthsep / (abs(maxC - btmRight4) + EPSILON)), 0.0, 1.0);