add new shadow sample shape to translucents rendering

This commit is contained in:
Xonk
2024-05-10 15:36:29 -04:00
parent 749b109b44
commit a74595afb6
4 changed files with 33 additions and 10 deletions

View File

@ -505,8 +505,8 @@ void main() {
for(int i = 0; i < VPS_Search_Samples; i++){
vec2 offsetS = SpiralSample(i, 7, 8, noise) * 0.5;
// vec2 offsetS = CleanSample(i, VPS_Search_Samples - 1, noise) * 0.5;
// vec2 offsetS = SpiralSample(i, 7, 8, noise) * 0.5;
vec2 offsetS = CleanSample(i, VPS_Search_Samples - 1, noise) * 0.5;
float weight = 3.0 + (i+noise) *rdMul/SHADOW_FILTER_SAMPLE_COUNT*shadowMapResolution*distortFactor/2.7;