Increasing shadowmap resolution

This commit is contained in:
2025-07-12 16:33:37 +02:00
parent 3cc1a67664
commit cc22f10565
2 changed files with 3 additions and 3 deletions
@@ -168,7 +168,7 @@ void ShadowPass::endFrame() {}
void ShadowPass::publishOutputs() {
shadowViewport = graphics->createViewport(nullptr, ViewportCreateInfo{.dimensions =
{
.size = {2048, 2048},
.size = {8192, 8192},
.offset = {0, 0},
},
.fieldOfView = 0,
+2 -2
View File
@@ -95,8 +95,8 @@ void LightEnvironment::addDirectionalLight(const Component::DirectionalLight& di
if (shadowMaps.size() < dirs.size()) {
shadowMaps.add(graphics->createTexture2D(TextureCreateInfo{
.format = Gfx::SE_FORMAT_D32_SFLOAT,
.width = 2048,
.height = 2048,
.width = 8192,
.height = 8192,
.elements = (uint32)dirs.size(),
.usage = Gfx::SE_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT | Gfx::SE_IMAGE_USAGE_SAMPLED_BIT,
.name = "ShadowMap",