mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
BPMemory: Convert a number of unions to BitFields
This commit is contained in:
parent
0a9574eaa1
commit
479abde9f4
6 changed files with 87 additions and 121 deletions
|
@ -769,7 +769,7 @@ void Tev::Draw()
|
|||
// - scaling of the "k" coefficient isn't clear either.
|
||||
|
||||
// First, calculate the offset from the viewport center (normalized to 0..1)
|
||||
float offset = (Position[0] - (static_cast<s32>(bpmem.fogRange.Base.Center) - 342)) /
|
||||
float offset = (Position[0] - (static_cast<s32>(bpmem.fogRange.Base.Center.Value()) - 342)) /
|
||||
static_cast<float>(xfmem.viewport.wd);
|
||||
|
||||
// Based on that, choose the index such that points which are far away from the z-axis use the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue