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