Rename "depth fade falloff" to "depth fade threshold" as it makes more sense

This commit is contained in:
nashmuhandes 2024-09-09 17:06:04 +08:00
commit 27058efe85
13 changed files with 19 additions and 19 deletions

View file

@ -193,7 +193,7 @@ public:
mSurfaceUniforms.uLightFactor = 0.0f;
mSurfaceUniforms.uFogDensity = 0.0f;
mSurfaceUniforms.uLightLevel = -1.0f;
mSurfaceUniforms.uDepthFadeFalloff = 0.0f;
mSurfaceUniforms.uDepthFadeThreshold = 0.0f;
mSpecialEffect = EFF_NONE;
mLightIndex = -1;
mBoneIndexBase = -1;
@ -264,9 +264,9 @@ public:
mSurfaceUniforms.uDesaturationFactor = 0.0f;
}
void SetDepthFadeFalloff(float falloff)
void SetDepthFadeThreshold(float falloff)
{
mSurfaceUniforms.uDepthFadeFalloff = falloff;
mSurfaceUniforms.uDepthFadeThreshold = falloff;
}
void SetTextureClamp(bool on)

View file

@ -44,6 +44,6 @@ struct SurfaceUniforms
float uAlphaThreshold;
int uTextureIndex;
float uDepthFadeFalloff;
float uDepthFadeThreshold;
float padding3;
};