alpha ref fix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user