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:
authorClément Foucault <foucault.clem@gmail.com>2022-02-05 20:51:11 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-02-05 20:51:11 +0300
commitb253532fa74dae8c123c4136a90bfac0c9d40a39 (patch)
tree027e21676711709a4f1aaca00e8bd65fb9e42989 /source/blender
parente58b397a2ae728ea5c6059207c77a586926ce0e1 (diff)
EEVEE: Fix missing resource binding
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/draw/engines/eevee/eevee_shading.cc1
-rw-r--r--source/blender/draw/engines/eevee/shaders/infos/eevee_material_info.hh2
2 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_shading.cc b/source/blender/draw/engines/eevee/eevee_shading.cc
index 787ae6a1ebc..6506b168413 100644
--- a/source/blender/draw/engines/eevee/eevee_shading.cc
+++ b/source/blender/draw/engines/eevee/eevee_shading.cc
@@ -46,6 +46,7 @@ void BackgroundPass::sync(GPUMaterial *gpumat, GPUTexture *lookdev_tx)
copy_v3_v3(camera_mat[3], inst_.camera.data_get().viewinv[3]);
DRWShadingGroup *grp = DRW_shgroup_material_create(gpumat, background_ps_);
+ DRW_shgroup_uniform_texture(grp, "utility_tx", inst_.shading_passes.utility_tx);
if (lookdev_tx != nullptr) {
/* HACK(fclem) This particular texture has been left without resource to be set here. */
DRW_shgroup_uniform_texture(grp, "samp0", lookdev_tx);
diff --git a/source/blender/draw/engines/eevee/shaders/infos/eevee_material_info.hh b/source/blender/draw/engines/eevee/shaders/infos/eevee_material_info.hh
index 130f550fad5..248697cac6d 100644
--- a/source/blender/draw/engines/eevee/shaders/infos/eevee_material_info.hh
+++ b/source/blender/draw/engines/eevee/shaders/infos/eevee_material_info.hh
@@ -131,7 +131,7 @@ GPU_SHADER_CREATE_INFO(eevee_background_lookdev)
.push_constant(Type::FLOAT, "blur")
.fragment_out(0, Type::VEC4, "out_background")
.fragment_source("eevee_lookdev_background_frag.glsl")
- .additional_info("draw_fullscreen", "eevee_utility_texture");
+ .additional_info("draw_fullscreen");
/** \} */