Gizmo mouse picking now works

This commit is contained in:
Antoine Pilote
2023-10-12 19:49:17 -04:00
parent 90732fca50
commit c826056846
4 changed files with 4 additions and 4 deletions

View File

@@ -278,7 +278,7 @@ namespace Nuake {
auto gizmoBuffer = Engine::GetCurrentWindow()->GetFrameBuffer();
gizmoBuffer->Bind();
bool foundSomethingToSelect = false;
if (const int result = gizmoBuffer->ReadPixel(3, pixelPos); result > 0)
if (const int result = gizmoBuffer->ReadPixel(1, pixelPos); result > 0)
{
auto ent = Entity{ (entt::entity)(result - 1), Engine::GetCurrentScene().get() };
if (ent.IsValid())