EEVEE: Fix broken cryptomatte shader compilation
Was caused by a missing resource.
This commit is contained in:
@@ -470,6 +470,7 @@ void Film::sync()
|
||||
cryptomatte_post_ps_.shader_set(inst_.shaders.static_shader_get(FILM_CRYPTOMATTE_POST));
|
||||
cryptomatte_post_ps_.bind_image("cryptomatte_img", &cryptomatte_tx_);
|
||||
cryptomatte_post_ps_.bind_image("weight_img", &weight_tx_.current());
|
||||
cryptomatte_post_ps_.bind_resources(inst_.uniform_data);
|
||||
cryptomatte_post_ps_.push_constant("cryptomatte_layer_len", cryptomatte_layer_count);
|
||||
cryptomatte_post_ps_.push_constant("cryptomatte_samples_per_layer",
|
||||
inst_.view_layer->cryptomatte_levels);
|
||||
|
||||
@@ -59,7 +59,7 @@ GPU_SHADER_CREATE_INFO(eevee_film_cryptomatte_post)
|
||||
.push_constant(Type::INT, "cryptomatte_samples_per_layer")
|
||||
.local_group_size(FILM_GROUP_SIZE, FILM_GROUP_SIZE)
|
||||
.compute_source("eevee_film_cryptomatte_post_comp.glsl")
|
||||
.additional_info("eevee_shared");
|
||||
.additional_info("eevee_global_ubo", "eevee_shared");
|
||||
|
||||
GPU_SHADER_CREATE_INFO(eevee_film_copy_frag)
|
||||
.do_static_compilation(true)
|
||||
|
||||
Reference in New Issue
Block a user