Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
40f9aa74
Commit
40f9aa74
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Patches
Plain Diff
[
#82
] Correct format to reduce shadow artifacts
parent
9aee8460
No related branches found
No related tags found
1 merge request
!70
Resolve "Voxel cone tracing"
Pipeline
#25979
passed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/voxelization/resources/shaders/shadowMapping.inc
+1
-1
1 addition, 1 deletion
projects/voxelization/resources/shaders/shadowMapping.inc
projects/voxelization/src/ShadowMapping.cpp
+1
-1
1 addition, 1 deletion
projects/voxelization/src/ShadowMapping.cpp
with
2 additions
and
2 deletions
projects/voxelization/resources/shaders/shadowMapping.inc
+
1
−
1
View file @
40f9aa74
...
@@ -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.
0
f
;
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
);
...
...
This diff is collapsed.
Click to expand it.
projects/voxelization/src/ShadowMapping.cpp
+
1
−
1
View file @
40f9aa74
...
@@ -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
::
eR16G16B16A16
Sfloat
;
const
vk
::
Format
shadowMapFormat
=
vk
::
Format
::
eR16G16B16A16
Unorm
;
const
vk
::
Format
shadowMapDepthFormat
=
vk
::
Format
::
eD16Unorm
;
const
vk
::
Format
shadowMapDepthFormat
=
vk
::
Format
::
eD16Unorm
;
const
uint32_t
shadowMapResolution
=
2048
;
const
uint32_t
shadowMapResolution
=
2048
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment