Fix: EEVEE-Next: Volumes

Regressions from 553b1b6f1f and 545f2c04fa
This commit is contained in:
Miguel Pozo
2024-01-29 13:37:47 +01:00
parent 4ad9d8ac59
commit f1c061c97b
2 changed files with 2 additions and 0 deletions

View File

@@ -398,6 +398,7 @@ PassMain::Sub *ForwardPipeline::material_transparent_add(const Object *ob,
void ForwardPipeline::render(View &view, Framebuffer &prepass_fb, Framebuffer &combined_fb)
{
if (!has_transparent_ && !has_opaque_) {
inst_.volume.draw_resolve(view);
return;
}

View File

@@ -1090,6 +1090,7 @@ void ShadowModule::end_sync()
sub.bind_resources(inst_.hiz_buffer.front);
sub.bind_resources(inst_.sampling);
sub.bind_resources(inst_.lights);
sub.bind_resources(inst_.volume.properties);
sub.bind_resources(inst_.volume.result);
sub.barrier(GPU_BARRIER_SHADER_IMAGE_ACCESS);
sub.dispatch(math::divide_ceil(inst_.volume.grid_size(), int3(VOLUME_GROUP_SIZE)));