Fixing rotation matrix
This commit is contained in:
parent
f550d14dcc
commit
f835647d91
2 changed files with 3 additions and 3 deletions
|
|
@ -675,7 +675,7 @@ void HelloVulkan::createTopLevelAS()
|
|||
{
|
||||
uint64_t _pad{0};
|
||||
};
|
||||
static_assert((sizeof(VkAccelerationStructureMotionInstanceNVPad) == 160));
|
||||
static_assert(sizeof(VkAccelerationStructureMotionInstanceNVPad) == 160);
|
||||
|
||||
// #NV_Motion_blur
|
||||
uint32_t objId;
|
||||
|
|
@ -706,7 +706,7 @@ void HelloVulkan::createTopLevelAS()
|
|||
objId = 0;
|
||||
{
|
||||
// m_instance[3].transform -> no matrix to SRT
|
||||
glm::quat rot = {};
|
||||
glm::quat rot = {1,0,0,0};
|
||||
|
||||
// Position of the instance at T0 and T1
|
||||
VkSRTDataNV matT0{}; // Translated to 0,0,2
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ int main(int argc, char** argv)
|
|||
nvvk::Context vkctx{};
|
||||
vkctx.ignoreDebugMessage(0x79de34d4); // Missing Device Extension "VK_NV_ray_tracing_motion_blur"
|
||||
vkctx.ignoreDebugMessage(0xf69d66f5); // Value of pInfos[0].pGeometries[0].geometry.triangles.pNext must be NULL
|
||||
vkctx.ignoreDebugMessage(0xd80a42ae); // SPIR-V Extension (SPV_NV_ray_tracing_motion_blur)
|
||||
vkctx.ignoreDebugMessage(0x938b32); // SPIR-V Extension (SPV_NV_ray_tracing_motion_blur)
|
||||
vkctx.initInstance(contextInfo);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue