alpha ref fix

This commit is contained in:
turanszkij
2020-04-11 19:53:55 +01:00
parent cf2b24e78d
commit 7ceea2cb91
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ inline bool is_saturated(float4 a) { return is_saturated(a.x) && is_saturated(a.
#ifdef DISABLE_ALPHATEST
#define ALPHATEST(x)
#else
#define ALPHATEST(x) clip((x) - (1.0f - g_xAlphaRef));
#define ALPHATEST(x) clip((x) - g_xAlphaRef);
#endif
#define DEGAMMA_SKY(x) pow(abs(x),g_xFrame_StaticSkyGamma)
+1 -1
View File
@@ -8705,7 +8705,7 @@ void SetAlphaRef(float alphaRef, CommandList cmd)
{
if (alphaRef != apiCB[cmd].g_xAlphaRef)
{
apiCB[cmd].g_xAlphaRef = alphaRef;
apiCB[cmd].g_xAlphaRef = 1 - alphaRef + 1.0f / 256.0f; // 256 so that it is just about smaller than 1 unorm unit (1.0/255.0)
GetDevice()->UpdateBuffer(&constantBuffers[CBTYPE_API], &apiCB[cmd], cmd);
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 39;
// minor bug fixes, alterations, refactors, updates
const int revision = 57;
const int revision = 58;
long GetVersion()