From c4c0ef116a9653eb97f6522b9b6fdb4d732f9d62 Mon Sep 17 00:00:00 2001 From: jfons Date: Mon, 11 Apr 2022 12:40:17 +0200 Subject: Fix specialization constant updates in color passes The color pass specialization constants were not being updated after splitting them to their own array. --- .../renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'servers') diff --git a/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp b/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp index 2acce8bab7..99a7fe6280 100644 --- a/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp @@ -824,6 +824,9 @@ void SceneShaderForwardClustered::set_default_specialization_constants(const Vec for (int k = 0; k < SHADER_VERSION_MAX; k++) { E->self()->pipelines[i][j][k].update_specialization_constants(default_specialization_constants); } + for (int k = 0; k < PIPELINE_COLOR_PASS_FLAG_COUNT; k++) { + E->self()->color_pipelines[i][j][k].update_specialization_constants(default_specialization_constants); + } } } } -- cgit v1.2.3