Kindof works a little bit

This commit is contained in:
Dynamitos
2025-05-09 23:05:47 +02:00
parent 174ff23164
commit 980414e38b
6 changed files with 25 additions and 20 deletions
@@ -81,8 +81,8 @@ void ShadowPass::render() {
"Shadow");
auto light = scene->getLightEnvironment()->getDirectionalLight(shadowIndex);
Component::Camera lightCamera = Component::Camera{
.nearPlane = -20.f,
.farPlane = 10.0f,
.nearPlane = -100.f,
.farPlane = 100.0f,
};
Gfx::PDescriptorSet viewParamsSet = createViewParamsSet(lightCamera, scene->getLightEnvironment()->getDirectionalTransform(shadowIndex));
graphics->beginRenderPass(renderPass);
@@ -173,10 +173,10 @@ void ShadowPass::publishOutputs() {
.offset = {0, 0},
},
.fieldOfView = 0,
.left = -20,
.right = 20,
.top = -20,
.bottom = 20});
.left = -100,
.right = 100,
.top = 100,
.bottom = -100});
viewport = shadowViewport;
}