Skip to content

Commit

Permalink
Fiddle with SSAO parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans-Kristian Arntzen committed Dec 3, 2018
1 parent 36bc05b commit f451b96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions application/scene_viewer_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,11 @@ void SceneViewerApplication::add_shadow_pass(Device &, const std::string &tag, D
void SceneViewerApplication::on_swapchain_changed(const SwapchainParameterEvent &swap)
{
auto physical_buffers = graph.consume_physical_buffers();

shadow_main = nullptr;
shadow_near = nullptr;
ssao_output = nullptr;

graph.reset();
graph.set_device(&swap.get_device());

Expand Down
2 changes: 1 addition & 1 deletion renderer/post/ssao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void setup_ssao(RenderGraph &graph, const RenderContext &context,

cmd.set_specialization_constant_mask(3);
cmd.set_specialization_constant(0, Global::common_renderer_data()->ssao_luts.kernel_size);
cmd.set_specialization_constant(1, 0.15f);
cmd.set_specialization_constant(1, 0.3f);

struct Push
{
Expand Down

0 comments on commit f451b96

Please sign in to comment.