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/tests
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/tests')
-rw-r--r--source/blender/draw/tests/shaders_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/tests/shaders_test.cc b/source/blender/draw/tests/shaders_test.cc
index 9ca15d412e0..703099477d6 100644
--- a/source/blender/draw/tests/shaders_test.cc
+++ b/source/blender/draw/tests/shaders_test.cc
@@ -340,7 +340,8 @@ TEST_F(DrawTest, eevee_glsl_shaders_static)
EXPECT_NE(EEVEE_shaders_volumes_scatter_sh_get(), nullptr);
EXPECT_NE(EEVEE_shaders_volumes_scatter_with_lights_sh_get(), nullptr);
EXPECT_NE(EEVEE_shaders_volumes_integration_sh_get(), nullptr);
- EXPECT_NE(EEVEE_shaders_volumes_resolve_sh_get(), nullptr);
+ EXPECT_NE(EEVEE_shaders_volumes_resolve_sh_get(false), nullptr);
+ EXPECT_NE(EEVEE_shaders_volumes_resolve_sh_get(true), nullptr);
EXPECT_NE(EEVEE_shaders_volumes_accum_sh_get(), nullptr);
EXPECT_NE(EEVEE_shaders_studiolight_probe_sh_get(), nullptr);
EXPECT_NE(EEVEE_shaders_studiolight_background_sh_get(), nullptr);