Fix drawing shadows for particles that use Depth Fade node
This commit is contained in:
@@ -419,6 +419,10 @@ void MaterialParameter::Bind(BindMeta& meta) const
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
else if (type == MaterialSceneTextures::SceneDepth)
|
||||
{
|
||||
view = GPUDevice::Instance->GetDefaultWhiteTexture()->View();
|
||||
}
|
||||
meta.Context->BindSR(_registerIndex, view);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user