diff --git a/projects/voxelization/resources/shaders/shadowMapping.inc b/projects/voxelization/resources/shaders/shadowMapping.inc index f75dabc76af7fc160c3c8b81c73abe3b986ebc07..8fc8c37c9fa22184a19dc038697d9dbd78cb0964 100644 --- a/projects/voxelization/resources/shaders/shadowMapping.inc +++ b/projects/voxelization/resources/shaders/shadowMapping.inc @@ -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); diff --git a/projects/voxelization/src/ShadowMapping.cpp b/projects/voxelization/src/ShadowMapping.cpp index 1373c9d275956a6f86a115cdb1fdfbee29c86832..e6af48c5f97da45c6cc8da99a06cddcee6a57a77 100644 --- a/projects/voxelization/src/ShadowMapping.cpp +++ b/projects/voxelization/src/ShadowMapping.cpp @@ -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;