diff options
| author | magumagu <magumagu9@gmail.com> | 2014-04-27 11:59:04 -0700 |
|---|---|---|
| committer | magumagu <magumagu9@gmail.com> | 2014-05-16 18:58:07 -0700 |
| commit | 1357277f40166683a3ac4eb9979010c3038d2db8 (patch) | |
| tree | 69895a9271115234210712d37ea5376dd196482f /Source/Core/VideoBackends/Software/Tev.cpp | |
| parent | 8f5342c442c8e78784b4ea7002250781ba768767 (diff) | |
Video backends: mass-replace "xfregs" with "xfmem".
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Tev.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index f20ed7b11e..8f927cfb26 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -689,7 +689,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] - (bpmem.fogRange.Base.Center - 342)) / (float)xfregs.viewport.wd; + float offset = (Position[0] - (bpmem.fogRange.Base.Center - 342)) / (float)xfmem.viewport.wd; // Based on that, choose the index such that points which are far away from the z-axis use the 10th "k" value and such that central points use the first value. float floatindex = 9.f - std::abs(offset) * 9.f; |
