mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
VideoSW: Clear normal vertex data.
This data might not be initialized but used for lighting. This matches our ShaderGen usage in VertexShaderGen.cpp:166.
This commit is contained in:
parent
e638775bc7
commit
5e9ab28ed1
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ void SWVertexLoader::LoadVertex()
|
|||
// transform this vertex so that it can be used for rasterization (outVertex)
|
||||
OutputVertexData* outVertex = m_SetupUnit->GetVertex();
|
||||
TransformUnit::TransformPosition(&m_Vertex, outVertex);
|
||||
memset(&outVertex->normal, 0, sizeof(outVertex->normal));
|
||||
if (g_main_cp_state.vtx_desc.Normal != NOT_PRESENT)
|
||||
{
|
||||
TransformUnit::TransformNormal(&m_Vertex, m_CurrentVat->g0.NormalElements, outVertex);
|
||||
|
|
Loading…
Add table
Reference in a new issue