Light Culling still doesn't work properly

This commit is contained in:
Dynamitos
2022-02-24 22:38:26 +01:00
parent 5268bb68e2
commit 84049a762c
44 changed files with 163 additions and 151 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
target_sources(SeeleEngine
target_sources(Engine
PRIVATE
Asset.h
Asset.cpp
+2 -2
View File
@@ -27,12 +27,12 @@ void MaterialLoader::importAsset(const std::filesystem::path& name)
import(name, asset);
}
Job MaterialLoader::import(std::filesystem::path, PMaterialAsset asset)
void MaterialLoader::import(std::filesystem::path, PMaterialAsset asset)
{
asset->load();
graphics->getShaderCompiler()->registerMaterial(asset);
AssetRegistry::get().registerMaterial(asset);
co_return;
//co_return;
}
PMaterialAsset MaterialLoader::getPlaceHolderMaterial()
+1 -1
View File
@@ -18,7 +18,7 @@ public:
void importAsset(const std::filesystem::path& name);
PMaterialAsset getPlaceHolderMaterial();
private:
Job import(std::filesystem::path filePath, PMaterialAsset asset);
void import(std::filesystem::path filePath, PMaterialAsset asset);
Gfx::PGraphics graphics;
List<std::future<void>> futures;
PMaterialAsset placeholderMaterial;
+2 -2
View File
@@ -38,7 +38,7 @@ PTextureAsset TextureLoader::getPlaceholderTexture()
return placeholderAsset;
}
Job TextureLoader::import(std::filesystem::path path, PTextureAsset textureAsset)
void TextureLoader::import(std::filesystem::path path, PTextureAsset textureAsset)
{
int x, y, n;
unsigned char* data = stbi_load(path.string().c_str(), &x, &y, &n, 4);
@@ -70,5 +70,5 @@ Job TextureLoader::import(std::filesystem::path path, PTextureAsset textureAsset
textureAsset->load();
textureAsset->setStatus(Asset::Status::Ready);
co_return;
//co_return;
}
+1 -1
View File
@@ -19,7 +19,7 @@ public:
void importAsset(const std::filesystem::path& filePath);
PTextureAsset getPlaceholderTexture();
private:
Job import(std::filesystem::path path, PTextureAsset asset);
void import(std::filesystem::path path, PTextureAsset asset);
Gfx::PGraphics graphics;
List<std::future<void>> futures;
PTextureAsset placeholderAsset;