mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-04 16:45:54 +00:00
Rename CP and XF normal component count enums and update their descriptions
This commit is contained in:
parent
736466a5d9
commit
46bcdc4372
9 changed files with 49 additions and 49 deletions
|
@ -677,10 +677,9 @@ public:
|
|||
}
|
||||
process_component(vtx_desc.low.Position, vtx_attr.g0.PosFormat,
|
||||
vtx_attr.g0.PosElements == CoordComponentCount::XY ? 2 : 3);
|
||||
// TODO: Is this calculation correct?
|
||||
const u32 normal_component_count =
|
||||
vtx_desc.low.Normal == VertexComponentFormat::Direct ? 3 : 1;
|
||||
const u32 normal_elements = vtx_attr.g0.NormalElements == NormalComponentCount::NBT ? 3 : 1;
|
||||
const u32 normal_elements = vtx_attr.g0.NormalElements == NormalComponentCount::NTB ? 3 : 1;
|
||||
process_component(vtx_desc.low.Normal, vtx_attr.g0.NormalFormat,
|
||||
normal_component_count * normal_elements,
|
||||
vtx_attr.g0.NormalIndex3 ? normal_elements : 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue