Merge pull request #67042 from clayjohn/overlay-shadow-bug
Fix material overlay overriding shadow casting logic
This commit is contained in:
commit
301bf9fa36
1 changed files with 1 additions and 1 deletions
|
@ -3862,7 +3862,7 @@ void RendererSceneCull::_update_dirty_instance(Instance *p_instance) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_instance->material_overlay.is_valid()) {
|
if (p_instance->material_overlay.is_valid()) {
|
||||||
can_cast_shadows = can_cast_shadows || RSG::material_storage->material_casts_shadows(p_instance->material_overlay);
|
can_cast_shadows = can_cast_shadows && RSG::material_storage->material_casts_shadows(p_instance->material_overlay);
|
||||||
is_animated = is_animated || RSG::material_storage->material_is_animated(p_instance->material_overlay);
|
is_animated = is_animated || RSG::material_storage->material_is_animated(p_instance->material_overlay);
|
||||||
_update_instance_shader_uniforms_from_material(isparams, p_instance->instance_shader_uniforms, p_instance->material_overlay);
|
_update_instance_shader_uniforms_from_material(isparams, p_instance->instance_shader_uniforms, p_instance->material_overlay);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue