Started porting outline pass

This commit is contained in:
antopilo
2025-02-01 22:16:50 -05:00
parent 403446b45d
commit 4dd5d2516e
13 changed files with 373 additions and 5 deletions

View File

@@ -35,6 +35,15 @@ void ViewportWidget::Update(float ts)
const Vector2 viewportSize = sceneViewport->GetViewportSize();
editorCam->OnWindowResize(viewportSize.x, viewportSize.y);
if (editorContext.GetSelection().Type == EditorSelectionType::Entity)
{
sceneViewport->SetSelectedEntityID(editorContext.GetSelection().Entity.GetHandle());
}
else
{
sceneViewport->SetSelectedEntityID(-1);
}
}
void ViewportWidget::Draw()