Add **Global Sign Distance Field** rendering (work in progress)
This commit is contained in:
@@ -106,6 +106,8 @@ bool SpriteRender::HasContentLoaded() const
|
||||
|
||||
void SpriteRender::Draw(RenderContext& renderContext)
|
||||
{
|
||||
if (renderContext.View.Pass == DrawPass::GlobalSDF)
|
||||
return;
|
||||
if (!Material || !Material->IsLoaded() || !_quadModel || !_quadModel->IsLoaded())
|
||||
return;
|
||||
auto model = _quadModel.As<Model>();
|
||||
|
||||
Reference in New Issue
Block a user