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

@@ -102,7 +102,7 @@ namespace Nuake
const Vector2 defaultResolution = Vector2(1, 1);
m_Framebuffer = CreateRef<FrameBuffer>(true, defaultResolution);
m_Framebuffer->SetTexture(CreateRef<Texture>(defaultResolution, GL_RGB));
m_Framebuffer->SetTexture(CreateRef<Texture>(defaultResolution, GL_RED_INTEGER, GL_R32I, GL_INT), GL_COLOR_ATTACHMENT3); // Entity ID
m_Framebuffer->SetTexture(CreateRef<Texture>(defaultResolution, GL_RED_INTEGER, GL_R32I, GL_INT), GL_COLOR_ATTACHMENT1); // Entity ID
InitImgui();