Skip to content
Snippets Groups Projects
Verified Commit 0f978b24 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Merge branch '82-voxel-cone-tracing' of...

Merge branch '82-voxel-cone-tracing' of gitlab.uni-koblenz.de:vulkan2021/vkcv-framework into 82-voxel-cone-tracing
parents 9b7dd742 40f9aa74
No related branches found
No related tags found
1 merge request!70Resolve "Voxel cone tracing"
Pipeline #25980 passed
...@@ -74,7 +74,7 @@ float shadowTest(vec3 worldPos, LightInfo lightInfo, texture2D shadowMap, sample ...@@ -74,7 +74,7 @@ float shadowTest(vec3 worldPos, LightInfo lightInfo, texture2D shadowMap, sample
shadowMapSample = unquantizeMoments(shadowMapSample); shadowMapSample = unquantizeMoments(shadowMapSample);
float depthBias = 0.0f; float depthBias = 0.f;
float momentBias = 0.00003; float momentBias = 0.00003;
return 1-ComputeMSMShadowIntensity(shadowMapSample, lightPos.z, depthBias, momentBias); return 1-ComputeMSMShadowIntensity(shadowMapSample, lightPos.z, depthBias, momentBias);
......
...@@ -103,7 +103,7 @@ glm::mat4 computeShadowViewProjectionMatrix( ...@@ -103,7 +103,7 @@ glm::mat4 computeShadowViewProjectionMatrix(
return vulkanCorrectionMatrix * crop * view; 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 vk::Format shadowMapDepthFormat = vk::Format::eD16Unorm;
const uint32_t shadowMapResolution = 2048; 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