fixing merge conflicts

This commit is contained in:
greerdv
2021-04-15 08:28:50 +01:00
parent d8169e08fb
commit 79a34f87b0
3 changed files with 5 additions and 5 deletions
@@ -80,7 +80,7 @@ namespace AZ
->InstanceID(blasIndex)
->HitGroupIndex(blasIndex)
->Blas(rayTracingSubMesh.m_blas)
->Transform(rayTracingMesh.second.m_transform)
->Matrix3x4(rayTracingMesh.second.m_matrix3x4)
;
}
@@ -295,10 +295,10 @@ namespace AZ
for (const auto& mesh : m_meshes)
{
AZ::Transform meshTransform = transformFeatureProcessor->GetTransformForId(TransformServiceFeatureProcessorInterface::ObjectId(mesh.first));
AZ::Transform noScaleTransform = meshTransform;
noScaleTransform.ExtractScale();
AZ::Matrix3x3 rotationMatrix = Matrix3x3::CreateFromTransform(noScaleTransform);
AZ::Matrix3x4 meshMatrix3x4 = transformFeatureProcessor->GetMatrix3x4ForId(TransformServiceFeatureProcessorInterface::ObjectId(mesh.first));
AZ::Matrix3x4 noScaleMatrix3x4 = meshMatrix3x4;
noScaleMatrix3x4.ExtractScale();
AZ::Matrix3x3 rotationMatrix = Matrix3x3::CreateFromMatrix3x4(noScaleMatrix3x4);
rotationMatrix = rotationMatrix.GetInverseFull().GetTranspose();
const RayTracingFeatureProcessor::SubMeshVector& subMeshes = mesh.second.m_subMeshes;