Skip to content
Snippets Groups Projects
Commit 40f9aa74 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#82] Correct format to reduce shadow artifacts

parent 9aee8460
No related branches found
No related tags found
1 merge request!70Resolve "Voxel cone tracing"
Pipeline #25979 passed
......@@ -74,7 +74,7 @@ float shadowTest(vec3 worldPos, LightInfo lightInfo, texture2D shadowMap, sample
shadowMapSample = unquantizeMoments(shadowMapSample);
float depthBias = 0.0f;
float depthBias = 0.f;
float momentBias = 0.00003;
return 1-ComputeMSMShadowIntensity(shadowMapSample, lightPos.z, depthBias, momentBias);
......
......@@ -103,7 +103,7 @@ glm::mat4 computeShadowViewProjectionMatrix(
return vulkanCorrectionMatrix * crop * view;
}
const vk::Format shadowMapFormat = vk::Format::eR16G16B16A16Sfloat;
const vk::Format shadowMapFormat = vk::Format::eR16G16B16A16Unorm;
const vk::Format shadowMapDepthFormat = vk::Format::eD16Unorm;
const uint32_t shadowMapResolution = 2048;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment