added raytraced reflections

This commit is contained in:
Turanszki Janos
2020-09-21 22:01:07 +02:00
parent f7cacec78d
commit b7bc35bbda
24 changed files with 644 additions and 22 deletions
+11
View File
@@ -141,6 +141,17 @@ PostprocessWindow::PostprocessWindow(EditorComponent* editor) : GUI(&editor->Get
});
ppWindow->AddWidget(ssrCheckBox);
ssrCheckBox = new wiCheckBox("Ray Traced Reflections: ");
ssrCheckBox->SetTooltip("Enable Ray Traced Reflections. Only if GPU supports raytracing.");
ssrCheckBox->SetScriptTip("RenderPath3D::SetRaytracedReflectionsEnabled(bool value)");
ssrCheckBox->SetPos(XMFLOAT2(x + 200, y));
ssrCheckBox->SetCheck(editor->renderPath->getRaytracedReflectionEnabled());
ssrCheckBox->OnClick([=](wiEventArgs args) {
editor->renderPath->setRaytracedReflectionsEnabled(args.bValue);
});
ppWindow->AddWidget(ssrCheckBox);
ssrCheckBox->SetEnabled(wiRenderer::GetDevice()->CheckCapability(GraphicsDevice::GRAPHICSDEVICE_CAPABILITY_RAYTRACING));
sssCheckBox = new wiCheckBox("SSS: ");
sssCheckBox->SetTooltip("Enable Subsurface Scattering. (Deferred only for now)");
sssCheckBox->SetScriptTip("RenderPath3D::SetSSSEnabled(bool value)");