Instanced the RayTracingBLAS objects to enable re-use when the same model is added multiple times.
Signed-off-by: dmcdiar <dmcdiar@amazon.com>
This commit is contained in:
@@ -952,7 +952,7 @@ namespace AZ
|
||||
subMeshes.push_back(subMesh);
|
||||
}
|
||||
|
||||
rayTracingFeatureProcessor->SetMesh(m_objectId, subMeshes);
|
||||
rayTracingFeatureProcessor->SetMesh(m_objectId, m_model->GetModelAsset()->GetId(), subMeshes);
|
||||
}
|
||||
|
||||
void MeshDataInstance::SetSortKey(RHI::DrawItemSortKey sortKey)
|
||||
|
||||
Reference in New Issue
Block a user