vault backup: 2024-12-19 18:06:46

This commit is contained in:
2024-12-19 18:06:46 +08:00
parent 6be69ff0ea
commit b3fab24e68
2 changed files with 16 additions and 6 deletions

View File

@@ -203,10 +203,6 @@ void FSceneRenderer::InitDynamicShadows(FRHICommandListImmediate& RHICmdList, FG
}
```
# ShadowDepths
渲染阴影深度贴图与图集。
@@ -442,7 +438,7 @@ bool FShadowDepthPassMeshProcessor::TryAddMeshBatch(const FMeshBatch& RESTRICT M
## ShaderDepthBias
相关计算位于FProjectedShadowInfo::UpdateShaderDepthBias()。
起效条件勾选Dynamic Inset Shadow
起效条件勾选Dynamic Inset ShadowbCastInsetShadow或者勾选bSelfShadowOnly。骨骼物体有额外的bCastCapsuleDirectShadow
CMD: CVarPerObjectDirectionalShadowDepthBias => r.Shadow.PerObjectDirectionalDepthBias
```c++
// per object shadows (the whole-scene are taken care of above)
@@ -463,6 +459,9 @@ if(bDirectionalLight)
}
```
### bCastInsetShadow
bCastInsetShadow => PrimitiveProxy->CastsInsetShadow() => DoesPrimitiveCastInsetShadow() => FilterPrimitiveForShadows() => FGatherShadowPrimitivesPacket::AnyThreadTask() => FGatherShadowPrimitivesPrepareTask::DoTask()
## Shader
VertexShader为ShadowDepthVertexShader.usf有4种变体
- IMPLEMENT_SHADOW_DEPTH_SHADERMODE_SHADERS(VertexShadowDepth_PerspectiveCorrect);