You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering why the motion vectors for animated scenes looked wrong when taken from the GBufferRaster, but they were correct in the VBufferRaster.
I replaced the respective code in the Source/Falcor/Scene/Raster.slang with the motion vector code from the VBuffer
Before (Raster.slang ~97): uint prevVertexIndex = gScene.meshes[instance.geometryIndex].prevVbOffset + vIn.vertexID;
After the fix: uint prevVertexIndex = gScene.meshes[instance.geometryID].prevVbOffset + vIn.vertexID;
and now it works.
The text was updated successfully, but these errors were encountered:
I was wondering why the motion vectors for animated scenes looked wrong when taken from the GBufferRaster, but they were correct in the VBufferRaster.
I replaced the respective code in the Source/Falcor/Scene/Raster.slang with the motion vector code from the VBuffer
Before (Raster.slang ~97):
uint prevVertexIndex = gScene.meshes[instance.geometryIndex].prevVbOffset + vIn.vertexID;
After the fix:
uint prevVertexIndex = gScene.meshes[instance.geometryID].prevVbOffset + vIn.vertexID;
and now it works.
The text was updated successfully, but these errors were encountered: