vault backup: 2024-12-19 16:34:02
This commit is contained in:
parent
6a24cc4470
commit
6be69ff0ea
@ -20,6 +20,10 @@ rating: ⭐
|
|||||||
## 相关类型
|
## 相关类型
|
||||||
- ShadowRendering.h
|
- ShadowRendering.h
|
||||||
**FProjectedShadowInfo**:存储投影阴影先关信息。包含各种变换矩阵、阴影渲染函数以及渲染参数、灯光&场景&图元信息。
|
**FProjectedShadowInfo**:存储投影阴影先关信息。包含各种变换矩阵、阴影渲染函数以及渲染参数、灯光&场景&图元信息。
|
||||||
|
- LightSceneInfo.h
|
||||||
|
FLightSceneInfo:渲染一盏灯所用到的信息。可以看做是游戏线程中ULightComponent的镜像。
|
||||||
|
- SceneCore.h
|
||||||
|
FLightPrimitiveInteraction:存储LightSceneInfo、PrimitiveSceneInfo等信息。
|
||||||
- SceneRendering.h
|
- SceneRendering.h
|
||||||
FVisibleLightInfo:可见光源信息, 主要是阴影相关的信息.
|
FVisibleLightInfo:可见光源信息, 主要是阴影相关的信息.
|
||||||
FVisibleLightViewInfo:
|
FVisibleLightViewInfo:
|
||||||
|
@ -69,10 +69,13 @@ PS.很有可能在FProjectedShadowInfo::RenderProjection()阶段进行判断以
|
|||||||
|
|
||||||
|
|
||||||
# 实现方法
|
# 实现方法
|
||||||
|
```c++
|
||||||
const FMaterialRenderProxy* MaterialRenderProxy = MeshBatch.MaterialRenderProxy;
|
const FMaterialRenderProxy* MaterialRenderProxy = MeshBatch.MaterialRenderProxy;
|
||||||
bool bEnableToonMeshDrawOutline = MaterialRenderProxy->GetToonOutlineDataAssetRT()->Settings.bEnableToonMeshDrawOutline;
|
bool bEnableToonMeshDrawOutline = MaterialRenderProxy->GetToonOutlineDataAssetRT()->Settings.bEnableToonMeshDrawOutline;
|
||||||
|
|
||||||
|
```
|
||||||
|
FProjectedShadowInfo->Scene
|
||||||
|
FPrimitiveSceneProxy
|
||||||
## 深度偏移
|
## 深度偏移
|
||||||
1. FProjectedShadowInfo添加变量。
|
1. FProjectedShadowInfo添加变量。
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user