Renamed DEPTHPARAMS to PIXELCENTERCORRECTION

This shader constant was previously used for depth remapping in D3D and for pixel center correction. Now it only serves one purpose and the new name makes it clear.
This commit is contained in:
Yuriy O'Donnell
2014-10-25 02:59:02 +02:00
parent 1fe3d07cbd
commit a886d8a8ee
4 changed files with 6 additions and 8 deletions

View File

@ -430,7 +430,7 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ
// which in turn can be critical if it happens for clear quads.
// Hence, we compensate for this pixel center difference so that primitives
// get rasterized correctly.
out.Write("o.pos.xy = o.pos.xy - " I_DEPTHPARAMS".zw;\n");
out.Write("o.pos.xy = o.pos.xy - " I_PIXELCENTERCORRECTION".xy;\n");
if (api_type == API_OPENGL)
{