Move depth fade definition to GLDEFS
This commit is contained in:
parent
27058efe85
commit
58fecd4b92
10 changed files with 12 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue