diff options
author | Jeroen Bakker <jbakker> | 2020-10-07 18:17:19 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-10-07 18:26:37 +0300 |
commit | 7c373555fd5de16905f52f0b60d46434ea3cbac6 (patch) | |
tree | 1a68981de0c90d2be6bd90c3acfc826e4e77e626 /source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl | |
parent | afab33e0b97cc5e5278c3e8af5490b9583c3b95c (diff) |
Fix T81254: Incorrect calculation of EEVEE Transmittance Volumetrics
Regular rendering uses a custom blend mode, but render passes renders to
2 separate textures. This wasn't configured correctly inside the
fragment shaders. This patch adds a switch to configure the fragment
shader with the correct attachments.
Backport to Blender 2.83.
Reviewed By: Clément Foucault
Differential Revision: https://developer.blender.org/D9038
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl b/source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl index 1b6a7b33f42..d8ce7905a1a 100644 --- a/source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl @@ -1,8 +1,8 @@ /* This shader is used to add default values to the volume accum textures. * so it looks similar (transmittance = 1, scattering = 0) */ -layout(location = 0, index = 0) out vec4 FragColor0; -layout(location = 0, index = 1) out vec4 FragColor1; +layout(location = 0) out vec4 FragColor0; +layout(location = 1) out vec4 FragColor1; void main() { |