Added nuake wren modules path detection, removed project stuff

This commit is contained in:
Antoine Pilote
2021-07-03 16:00:13 -04:00
parent 2fff0594b0
commit f5bcb12f61
23 changed files with 37 additions and 533 deletions

View File

@@ -258,6 +258,7 @@ void Scene::Draw()
auto [transform, model, parent] = quakeView.get<TransformComponent, BSPBrushComponent, ParentComponent>(e);
if (model.IsTransparent)
continue;
Renderer::m_Shader->SetUniformMat4f("u_View", cam->GetTransform());
Renderer::m_Shader->SetUniformMat4f("u_Projection", cam->GetPerspective());
Renderer::m_Shader->SetUniformMat4f("u_Model", transform.GetTransform());
@@ -289,7 +290,7 @@ void Scene::EditorDraw()
Renderer::m_Shader->Bind();
env->Push();
glEnable(GL_DEPTH_TEST);
// Push lights
{
auto view = m_Registry.view<TransformComponent, LightComponent, ParentComponent>();