diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-03-19 22:28:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-03-19 23:11:06 +0300 |
commit | b96acd0663b589e5519a97c4f435d37e507fb8c1 (patch) | |
tree | 8fc0c7528b45ee4ab8ec8e00962162d3cf76fac9 /source/blender/draw/engines/eevee/eevee_private.h | |
parent | 89ef0da5513a2bc85a518b0941807ecdd6980a66 (diff) |
EEVEE: Volumetrics: Add back support for light clamp
The new clamping works by modifying the lamp internal radius which
then soften the light contribution.
However this does remove more light compare to the old solution.
This is because the clamp now affects the light over a much larger
distance since it is smoother. Old scene needs manual tweaking.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_private.h')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_private.h b/source/blender/draw/engines/eevee/eevee_private.h index cbaf55809c6..bc04fe024fc 100644 --- a/source/blender/draw/engines/eevee/eevee_private.h +++ b/source/blender/draw/engines/eevee/eevee_private.h @@ -489,7 +489,7 @@ typedef struct EEVEE_Light { float rightvec[3], sizex; float upvec[3], sizey; float forwardvec[3], light_type; - float diff, spec, volume, _pad0[1]; + float diff, spec, volume, volume_radius; } EEVEE_Light; /* Special type for elliptic area lights, matches lamps_lib.glsl */ @@ -717,6 +717,7 @@ typedef struct EEVEE_EffectsInfo { struct GPUTexture *sss_stencil; /* Volumetrics */ int volume_current_sample; + float volume_light_clamp; struct GPUTexture *volume_scatter; struct GPUTexture *volume_transmit; /* SSR */ |