Increasing shadowmap resolution
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user