Add ray traced glTF sample (#1083)
* Started working on a ray tracing glTF sample * Started working on a ray tracing glTF sample Added textures using descriptor indexing * Frame accumulation Pass glTF node transforms to BLAS build * Shader cleanup * Code cleanup, flip Y using TLAS transform matrix * Create AS for all primitives in the gltf scene * Remove unused variables * Added missing shaders * Minor cleanup
This commit is contained in:
parent
e006185ca0
commit
5962189427
18 changed files with 1109 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/*
|
||||
* Vulkan glTF model and texture loading class based on tinyglTF (https://github.com/syoyo/tinygltf)
|
||||
*
|
||||
|
|
@ -987,6 +986,7 @@ void vkglTF::Model::loadImages(tinygltf::Model &gltfModel, vks::VulkanDevice *de
|
|||
for (tinygltf::Image &image : gltfModel.images) {
|
||||
vkglTF::Texture texture;
|
||||
texture.fromglTfImage(image, path, device, transferQueue);
|
||||
texture.index = static_cast<uint32_t>(textures.size());
|
||||
textures.push_back(texture);
|
||||
}
|
||||
// Create an empty texture to be used for empty material images
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue