Only run SMAA when AA is actually enabled
This commit is contained in:
parent
3cdb75a8f6
commit
4f6dbb8677
1 changed files with 7 additions and 5 deletions
|
@ -195,11 +195,13 @@ void renderer::render(GFXCommandBuffer* commandbuffer, Scene* scene, RenderTarge
|
||||||
|
|
||||||
commandbuffer->pop_group();
|
commandbuffer->pop_group();
|
||||||
|
|
||||||
commandbuffer->push_group("SMAA");
|
if(render_options.enable_aa) {
|
||||||
|
commandbuffer->push_group("SMAA");
|
||||||
|
|
||||||
smaa_pass->render(commandbuffer, target);
|
smaa_pass->render(commandbuffer, target);
|
||||||
|
|
||||||
commandbuffer->pop_group();
|
commandbuffer->pop_group();
|
||||||
|
}
|
||||||
|
|
||||||
if(render_options.enable_depth_of_field && dof_pass != nullptr)
|
if(render_options.enable_depth_of_field && dof_pass != nullptr)
|
||||||
dof_pass->render(commandbuffer, *scene);
|
dof_pass->render(commandbuffer, *scene);
|
||||||
|
|
Reference in a new issue