Enable UI overlay for additional ray tracing samples
This commit is contained in:
parent
a9ae9eafaa
commit
259222054e
2 changed files with 5 additions and 4 deletions
|
|
@ -57,9 +57,7 @@ public:
|
||||||
VulkanExample() : VulkanRaytracingSample()
|
VulkanExample() : VulkanRaytracingSample()
|
||||||
{
|
{
|
||||||
title = "Ray tracing glTF model";
|
title = "Ray tracing glTF model";
|
||||||
settings.overlay = false;
|
|
||||||
camera.type = Camera::CameraType::lookat;
|
camera.type = Camera::CameraType::lookat;
|
||||||
//camera.type = Camera::CameraType::firstperson;
|
|
||||||
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 512.0f);
|
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 512.0f);
|
||||||
camera.setRotation(glm::vec3(0.0f, 0.0f, 0.0f));
|
camera.setRotation(glm::vec3(0.0f, 0.0f, 0.0f));
|
||||||
camera.setTranslation(glm::vec3(0.0f, -0.1f, -1.0f));
|
camera.setTranslation(glm::vec3(0.0f, -0.1f, -1.0f));
|
||||||
|
|
@ -698,6 +696,8 @@ public:
|
||||||
VK_IMAGE_LAYOUT_GENERAL,
|
VK_IMAGE_LAYOUT_GENERAL,
|
||||||
subresourceRange);
|
subresourceRange);
|
||||||
|
|
||||||
|
drawUI(drawCmdBuffers[i], frameBuffers[i]);
|
||||||
|
|
||||||
VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i]));
|
VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Vulkan Example - Texture mapping with transparency using accelerated ray tracing example
|
* Vulkan Example - Texture mapping with transparency using accelerated ray tracing example
|
||||||
*
|
*
|
||||||
* Copyright (C) 2023 by Sascha Willems - www.saschawillems.de
|
* Copyright (C) 2024 by Sascha Willems - www.saschawillems.de
|
||||||
*
|
*
|
||||||
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
||||||
*/
|
*/
|
||||||
|
|
@ -52,7 +52,6 @@ public:
|
||||||
VulkanExample() : VulkanRaytracingSample()
|
VulkanExample() : VulkanRaytracingSample()
|
||||||
{
|
{
|
||||||
title = "Ray tracing textures";
|
title = "Ray tracing textures";
|
||||||
settings.overlay = false;
|
|
||||||
camera.type = Camera::CameraType::lookat;
|
camera.type = Camera::CameraType::lookat;
|
||||||
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 512.0f);
|
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 512.0f);
|
||||||
camera.setRotation(glm::vec3(45.0f, 0.0f, 0.0f));
|
camera.setRotation(glm::vec3(45.0f, 0.0f, 0.0f));
|
||||||
|
|
@ -640,6 +639,8 @@ public:
|
||||||
VK_IMAGE_LAYOUT_GENERAL,
|
VK_IMAGE_LAYOUT_GENERAL,
|
||||||
subresourceRange);
|
subresourceRange);
|
||||||
|
|
||||||
|
drawUI(drawCmdBuffers[i], frameBuffers[i]);
|
||||||
|
|
||||||
VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i]));
|
VK_CHECK_RESULT(vkEndCommandBuffer(drawCmdBuffers[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue