Prefab saving

This commit is contained in:
antopilo
2021-08-26 20:46:34 -04:00
parent 96f0cdb4e9
commit 3fb0a2cc81
6 changed files with 117 additions and 9 deletions

View File

@@ -157,7 +157,7 @@ namespace Nuake {
void Scene::DrawShadows()
{
auto meshView = m_Registry.view<TransformComponent, MeshComponent>();
auto quakeView = m_Registry.view<TransformComponent, QuakeMapComponent>();
auto quakeView = m_Registry.view<TransformComponent, BSPBrushComponent>();
auto view = m_Registry.view<TransformComponent, LightComponent>();
Ref<Camera> cam = m_EditorCamera;
@@ -177,6 +177,7 @@ namespace Nuake {
glCullFace(GL_BACK);
// Build a list of mesh to draw.
for (auto l : view)
{
auto [lightTransform, light] = view.get<TransformComponent, LightComponent>(l);