Move depth fade definition to GLDEFS

This commit is contained in:
nashmuhandes 2024-09-09 18:08:10 +08:00 committed by Nash Muhandes
commit 58fecd4b92
10 changed files with 12 additions and 16 deletions

View file

@ -413,9 +413,11 @@ void VkRenderState::ApplySurfaceUniforms()
mSurfaceUniforms.uTextureIndex = static_cast<VkMaterial*>(mMaterial.mMaterial)->GetBindlessIndex(mMaterial);
mSurfaceUniforms.uSpecularMaterial = { source->GetGlossiness(), source->GetSpecularLevel() };
mSurfaceUniforms.uDepthFadeThreshold = source->GetDepthFadeThreshold();
}
else
{
mSurfaceUniforms.uDepthFadeThreshold = 0.f;
mSurfaceUniforms.uTextureIndex = 0;
}
mMaterial.mChanged = false;