Added mipmapping partially

This commit is contained in:
Vladislav Khorev committed 2026-01-07 13:30:21 +03:00
1 parent 34fee1005a
commit 6961152d34
8 files changed
+74 -41

No files matched your search

+3 -1
View File
@@ -198,6 +198,7 @@ namespace ZL {
{
if (stoneMapFB == nullptr)
{
//stoneMapFB = std::make_unique<FrameBuffer>(512, 512, true);
stoneMapFB = std::make_unique<FrameBuffer>(512, 512);
}
stoneMapFB->Bind();
@@ -206,6 +207,8 @@ namespace ZL {
stoneMapFB->Unbind();
stoneMapFB->GenerateMipmaps();
}
//bakeStoneTexture(renderer);
@@ -343,7 +346,6 @@ namespace ZL {
renderer.RotateMatrix(Environment::inverseShipMatrix);
renderer.TranslateMatrix(-Environment::shipPosition);
renderer.RenderUniform1f("uDistanceToPlanetSurface", dist);
renderer.RenderUniform1f("uCurrentZFar", currentZFar);
renderer.RenderUniform3fv("uViewPos", Environment::shipPosition.data());