Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jbakker>2020-10-07 18:17:19 +0300
committerJeroen Bakker <jeroen@blender.org>2020-10-07 18:26:37 +0300
commit7c373555fd5de16905f52f0b60d46434ea3cbac6 (patch)
tree1a68981de0c90d2be6bd90c3acfc826e4e77e626 /source/blender/draw/engines/eevee/shaders/volumetric_accum_frag.glsl
parentafab33e0b97cc5e5278c3e8af5490b9583c3b95c (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.glsl4
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()
{