adding post process and AO

This commit is contained in:
2025-06-01 16:52:01 +02:00
parent e1c4698a56
commit 195518361c
43 changed files with 241 additions and 330764 deletions

View File

@@ -9,13 +9,13 @@ namespace Scop
{
if(path.extension() != ".bmp")
{
Error("BMP loader : not a BMP file, %", path);
Error("BMP loader: not a BMP file, %", path);
return {};
}
std::ifstream file(path, std::ios::binary);
if(!file.is_open())
{
Error("BMP loader : could not open %", path);
Error("BMP loader: could not open %", path);
return {};
}
std::int16_t bpp;
@@ -26,7 +26,7 @@ namespace Scop
file.read(reinterpret_cast<char*>(&bpp), sizeof(bpp));
file.seekg(54, std::ios_base::beg);
if(bpp != 24)
Warning("BMP loader : warning while loadeing %, cannot handle yet different color palette sizes", path);
Warning("BMP loader: warning while loadeing %, cannot handle yet different color palette sizes", path);
CPUBuffer buffer{ dimensions.x * dimensions.y * 4 };
for(std::size_t i = 0; i <= buffer.GetSize(); i += 4)
{