1
1

EEVEE: Depth of field: Fix incorrect variance occlusion

The change is likely not noticeable.
This commit is contained in:
2022-08-02 21:21:14 +02:00
parent 04d43e8dbb
commit 75dda90030

View File

@@ -67,7 +67,7 @@ void main(void)
/* Occlude the sprite with geometry from the same field
* using a VSM like chebychev test (slide 85). */
float mean = occlusion_data.x;
float variance = occlusion_data.x;
float variance = occlusion_data.y;
shapes *= variance * safe_rcp(variance + sqr(max(cocs * correction_fac - mean, 0.0)));
}