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)
{
if (overlay->header("Settings")) {
if (overlay->checkBox("Display shadow render target", &displayShadowMap)) {
if (overlay->comboBox("Scenes", &sceneIndex, sceneNames)) {
buildCommandBuffers();
buildOffscreenCommandBuffer();
}
if (overlay->checkBox("Display shadow render target", &displayShadowMap)) {
buildCommandBuffers();
}
if (overlay->checkBox("PCF filtering", &filterPCF)) {