Skip to content

Commit

Permalink
Hydrogent: updated slope-scaled depth bias for shadow pass
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 17, 2024
1 parent 7cb5a24 commit 406f1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hydrogent/src/Tasks/HnTaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void HnTaskManager::CreateRenderShadowsTask()

HnRenderShadowsTaskParams TaskParams;
TaskParams.State.DepthBiasEnabled = true;
TaskParams.State.SlopeScaledDepthBias = Renderer.GetSettings().PCFKernelSize * 0.5f + 0.5f;
TaskParams.State.SlopeScaledDepthBias = Renderer.GetSettings().PCFKernelSize * 0.5f + 1.0f;
CreateTask<HnRenderShadowsTask>(HnTaskManagerTokens->renderShadowsTask, TaskUID_RenderShadows, TaskParams);

// Only render shadows from default material for now
Expand Down

0 comments on commit 406f1ae

Please sign in to comment.