mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
Improve documentation.
This commit is contained in:
parent
8c1c7fc2da
commit
7078216b61
7 changed files with 44 additions and 26 deletions
|
@ -389,8 +389,9 @@ void VertexShaderManager::SetConstants()
|
|||
|
||||
// The depth range is handled in the vertex shader. We need to reverse
|
||||
// the far value to get a reversed depth range mapping. This is necessary
|
||||
// because we have the most precision at the near plane, while the console
|
||||
// has the most percision at the far plane.
|
||||
// because the standard depth range equation pushes all depth values towards
|
||||
// the back of the depth buffer where conventionally depth buffers have the
|
||||
// least precision.
|
||||
constants.pixelcentercorrection[2] = xfmem.viewport.zRange / 16777215.0f;
|
||||
constants.pixelcentercorrection[3] = 1.0f - xfmem.viewport.farZ / 16777215.0f;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue