Shadow mapping sample scene selection

This commit is contained in:
saschawillems 2017-11-04 21:29:11 +01:00
parent 327994b3c3
commit 7fcb61ee94

View file

@ -934,11 +934,11 @@ public:
virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay) virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay)
{ {
if (overlay->header("Settings")) { if (overlay->header("Settings")) {
if (overlay->checkBox("Display shadow render target", &displayShadowMap)) {
if (overlay->comboBox("Scenes", &sceneIndex, sceneNames)) { if (overlay->comboBox("Scenes", &sceneIndex, sceneNames)) {
buildCommandBuffers(); buildCommandBuffers();
buildOffscreenCommandBuffer(); buildOffscreenCommandBuffer();
} }
if (overlay->checkBox("Display shadow render target", &displayShadowMap)) {
buildCommandBuffers(); buildCommandBuffers();
} }
if (overlay->checkBox("PCF filtering", &filterPCF)) { if (overlay->checkBox("PCF filtering", &filterPCF)) {