@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user