Only render DoF when enabled
This commit is contained in:
parent
19a60a7a06
commit
cddb50c4d6
1 changed files with 2 additions and 1 deletions
|
@ -283,6 +283,7 @@ void Renderer::render(Scene* scene, int index) {
|
|||
|
||||
commandbuffer->pop_group();
|
||||
|
||||
if(render_options.enable_depth_of_field)
|
||||
dofPass->render(commandbuffer, *scene);
|
||||
|
||||
if(!viewport_mode) {
|
||||
|
|
Reference in a new issue