Parcourir la source

Fix openxr incorrect root pass template usage (#631)

Signed-off-by: Akio Gaule <[email protected]>
Akio Gaule il y a 2 ans
Parent
commit
68111eb19f

+ 0 - 2
Gem/Code/Source/AuxGeomSharedDrawFunctions.cpp

@@ -802,8 +802,6 @@ namespace AtomSampleViewer
             // Spread the draw style out along the X axis
             for (int style = 0; style < numStyles; ++style)
             {
-                Vector3 boxPosition = basePosition;
-
                 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                 // Layer 0: AABBs with no transform
                 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

+ 2 - 2
Gem/Code/Source/SampleComponentManager.cpp

@@ -1788,13 +1788,13 @@ namespace AtomSampleViewer
             // Build the pipeline for left eye
             xrPipelineDesc.m_name = "RPISamplePipelineXRLeft";
             xrPipelineDesc.m_materialPipelineTag = "MultiViewPipeline";
-            xrPipelineDesc.m_rootPassTemplate = "MultiViewXRLeftPipelineTemplate";
+            xrPipelineDesc.m_rootPassTemplate = "MultiViewPipelineTemplate";
             RPI::RenderPipelinePtr renderPipelineLeft = RPI::RenderPipeline::CreateRenderPipelineForWindow(xrPipelineDesc, *m_windowContext.get(), AZ::RPI::ViewType::XrLeft);
 
             // Build the pipeline for right eye
             xrPipelineDesc.m_name = "RHISamplePipelineXRRight";
             xrPipelineDesc.m_materialPipelineTag = "MultiViewPipeline";
-            xrPipelineDesc.m_rootPassTemplate = "MultiViewXRRightPipelineTemplate";
+            xrPipelineDesc.m_rootPassTemplate = "MultiViewPipelineTemplate";
             RPI::RenderPipelinePtr renderPipelineRight = RPI::RenderPipeline::CreateRenderPipelineForWindow(xrPipelineDesc, *m_windowContext.get(), AZ::RPI::ViewType::XrRight);
 
             //Add both the pipelines to the scene