Bugfix - Render normal is incomplete when multiple mesh present. (#5605)

Signed-off-by: rhhong <rhhong@amazon.com>
This commit is contained in:
Roman
2021-11-16 00:17:40 -08:00
committed by GitHub
parent 3791149c6b
commit 9a72dd7446
@@ -329,15 +329,15 @@ namespace AZ::Render
m_auxVertices.emplace_back(position);
m_auxVertices.emplace_back(position + normal);
}
}
RPI::AuxGeomDraw::AuxGeomDynamicDrawArguments lineArgs;
lineArgs.m_verts = m_auxVertices.data();
lineArgs.m_vertCount = static_cast<uint32_t>(m_auxVertices.size());
lineArgs.m_colors = &vertexNormalsColor;
lineArgs.m_colorCount = 1;
lineArgs.m_depthTest = RPI::AuxGeomDraw::DepthTest::Off;
auxGeom->DrawLines(lineArgs);
RPI::AuxGeomDraw::AuxGeomDynamicDrawArguments lineArgs;
lineArgs.m_verts = m_auxVertices.data();
lineArgs.m_vertCount = static_cast<uint32_t>(m_auxVertices.size());
lineArgs.m_colors = &vertexNormalsColor;
lineArgs.m_colorCount = 1;
lineArgs.m_depthTest = RPI::AuxGeomDraw::DepthTest::Off;
auxGeom->DrawLines(lineArgs);
}
}
}