Rename "depth fade falloff" to "depth fade threshold" as it makes more sense
This commit is contained in:
parent
6c57283b25
commit
27058efe85
13 changed files with 19 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,6 @@ struct SurfaceUniforms
|
|||
|
||||
float uAlphaThreshold;
|
||||
int uTextureIndex;
|
||||
float uDepthFadeFalloff;
|
||||
float uDepthFadeThreshold;
|
||||
float padding3;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ std::unique_ptr<VulkanShader> VkShaderManager::LoadFragShader(FString shadername
|
|||
if (!key.AlphaTest) definesBlock << "#define NO_ALPHATEST\n";
|
||||
if (key.GBufferPass) definesBlock << "#define GBUFFER_PASS\n";
|
||||
|
||||
if (key.DepthFadeFalloff) definesBlock << "#define USE_DEPTHFADEFALLOFF\n";
|
||||
if (key.DepthFadeThreshold) definesBlock << "#define USE_DEPTHFADETHRESHOLD\n";
|
||||
|
||||
if (key.Simple2D) definesBlock << "#define SIMPLE2D\n";
|
||||
if (key.ClampY) definesBlock << "#define TEXF_ClampY\n";
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public:
|
|||
uint64_t UseLevelMesh : 1; // USE_LEVELMESH
|
||||
uint64_t FogBalls : 1; // FOGBALLS
|
||||
uint64_t NoFragmentShader : 1;
|
||||
uint64_t DepthFadeFalloff : 1;
|
||||
uint64_t DepthFadeThreshold : 1;
|
||||
uint64_t Unused : 41;
|
||||
};
|
||||
uint64_t AsQWORD = 0;
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ void VkRenderState::ApplyRenderPass(int dt)
|
|||
pipelineKey.ShaderKey.Detailmap = (uTextureMode & TEXF_Detailmap) != 0;
|
||||
pipelineKey.ShaderKey.Glowmap = (uTextureMode & TEXF_Glowmap) != 0;
|
||||
|
||||
pipelineKey.ShaderKey.DepthFadeFalloff = mSurfaceUniforms.uDepthFadeFalloff > 0.0f;
|
||||
pipelineKey.ShaderKey.DepthFadeThreshold = mSurfaceUniforms.uDepthFadeThreshold > 0.0f;
|
||||
|
||||
// The way GZDoom handles state is just plain insanity!
|
||||
int fogset = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue