Add march from fog to light for occlusion

This commit is contained in:
Lauri Räsänen 2023-11-11 16:43:07 +02:00
parent f4a7253922
commit 5497e8d6ce
2 changed files with 38 additions and 15 deletions

View file

@ -7,6 +7,9 @@ const SHADOW_SAMPLES = 2;
const INV_SHADOW_SAMPLES = 1.0 / 25.0;
const FOG_MAX_STEPS = 30;
const FOG_STEP_SIZE = 5.0;
const FOG_LIGHT_MAX_STEPS = 10;
const FOG_LIGHT_STEP_SIZE = 10.0;
const FOG_DENSITY = 2.0;
const FOG_LIGHT_DENSITY = 3.0;
const FOG_ALPHA = 1.0;
const FOG_BLEND_STEPS = 4;