diff --git a/03-UnrealEngine/卡通渲染相关资料/卡通渲染开发总览.md b/03-UnrealEngine/卡通渲染相关资料/卡通渲染开发总览.md index 46282b5..a92b930 100644 --- a/03-UnrealEngine/卡通渲染相关资料/卡通渲染开发总览.md +++ b/03-UnrealEngine/卡通渲染相关资料/卡通渲染开发总览.md @@ -119,7 +119,7 @@ rating: ⭐⭐⭐ 2. [ ] 平滑法线采样 11. [ ] 阴影控制 1. [x] 控制深度偏移 - 1. [ ] 在材质中使用ShadowPassSwitch再对DirectionalLight方向进行WPO偏移实现。 + 1. [ ] 在材质中使用ShadowPassSwitch再对ViewSpace的Z轴方向(使用DirectionalLightVector比较可以只对方向光进行偏移)进行WPO偏移实现。 2. [ ] ContactShadow接触阴影实现衣服细节的DetailShadow 3. [ ] 半程阴影 12. [ ] ToonTranslucent diff --git a/03-UnrealEngine/卡通渲染相关资料/渲染功能/阴影控制/ToonShadow.md b/03-UnrealEngine/卡通渲染相关资料/渲染功能/阴影控制/ToonShadow.md index 77a55fa..2d708a9 100644 --- a/03-UnrealEngine/卡通渲染相关资料/渲染功能/阴影控制/ToonShadow.md +++ b/03-UnrealEngine/卡通渲染相关资料/渲染功能/阴影控制/ToonShadow.md @@ -96,10 +96,16 @@ bool bEnableToonMeshDrawOutline = MaterialRenderProxy->GetToonOutlineDataAssetRT FProjectedShadowInfo->Scene FPrimitiveSceneProxy ## 深度偏移 +### 方法一 1. FProjectedShadowInfo添加变量。 - FSceneRenderer::RenderShadowDepthMaps() => RenderShadowDepthMapAtlases() => ProjectedShadowInfo->RenderDepth() +已放弃,FProjectedShadowInfo无法判断MeshSection。 +### 方法二 +在材质中使用ShadowPassSwitch再对ViewSpace的Z轴方向(使用DirectionalLightVector比较可以只对方向光进行偏移)进行WPO偏移实现。 + +其优点就是可以用贴图来控制偏移过渡。 + ## DirectionOffsetToViewShadow 1. 在FProjectedShadowInfo添加变量。 FSceneRenderer::CreateDynamicShadows() => SetupInteractionShadows(),在CreatePerObjectProjectedShadow()添加相关逻辑。 diff --git a/07-Other/生活/收支记账/2025.md b/07-Other/生活/收支记账/2025.md index 5eec840..a31da53 100644 --- a/07-Other/生活/收支记账/2025.md +++ b/07-Other/生活/收支记账/2025.md @@ -7,4 +7,7 @@ | 燃气费 | 1.1 | 136.4 | 支付宝 | | 公交卡 | 1.7 | 100 | 支付宝 | | TaoBao购物 | 1.8 | 39.55 | 支付宝 | +| JD购物(睡衣) | 1.9 | 154.84 | 微信 | +| JD购物(睡衣) | 1.9 | 159.95 | | +| | | | |