|
@@ -211,6 +211,105 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ "Name": "ForwardSubsurfaceMSAAPass",
|
|
|
|
+ "TemplateName": "EnvironmentCubeMapForwardSubsurfaceMSAAPassTemplate",
|
|
|
|
+ "Connections": [
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "DirectionalLightShadowmap",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "CascadedShadowmapsPass",
|
|
|
|
+ "Attachment": "Shadowmap"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "ExponentialShadowmapDirectional",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "EsmShadowmapsPassDirectional",
|
|
|
|
+ "Attachment": "EsmShadowmaps"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "ProjectedShadowmap",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "ProjectedShadowmapsPass",
|
|
|
|
+ "Attachment": "Shadowmap"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "ExponentialShadowmapProjected",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "EsmShadowmapsPassProjected",
|
|
|
|
+ "Attachment": "EsmShadowmaps"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "TileLightData",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "LightCullingPass",
|
|
|
|
+ "Attachment": "TileLightData"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "LightListRemapped",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "LightCullingPass",
|
|
|
|
+ "Attachment": "LightListRemapped"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // Input/Outputs...
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "DepthStencilInputOutput",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "DepthPrePass",
|
|
|
|
+ "Attachment": "DepthMSAA"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "DiffuseOutput",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "ForwardMSAAPass",
|
|
|
|
+ "Attachment": "DiffuseOutput"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "SpecularOutput",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "ForwardMSAAPass",
|
|
|
|
+ "Attachment": "SpecularOutput"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "AlbedoOutput",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "ForwardMSAAPass",
|
|
|
|
+ "Attachment": "AlbedoOutput"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "SpecularF0Output",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "ForwardMSAAPass",
|
|
|
|
+ "Attachment": "SpecularF0Output"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "NormalOutput",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "ForwardMSAAPass",
|
|
|
|
+ "Attachment": "NormalOutput"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "PassData": {
|
|
|
|
+ "$type": "RasterPassData",
|
|
|
|
+ "DrawListTag": "forwardWithSubsurfaceOutput",
|
|
|
|
+ "PipelineViewTag": "MainCamera",
|
|
|
|
+ "PassSrgShaderAsset": {
|
|
|
|
+ "FilePath": "Shaders/ForwardPassSrg.shader"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
{
|
|
{
|
|
"Name": "SkyBoxPass",
|
|
"Name": "SkyBoxPass",
|
|
"TemplateName": "EnvironmentCubeMapSkyBoxPassTemplate",
|
|
"TemplateName": "EnvironmentCubeMapSkyBoxPassTemplate",
|
|
@@ -325,6 +424,75 @@
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ "Name": "MSAAResolveScatterDistancePass",
|
|
|
|
+ "TemplateName": "MSAAResolveColorTemplate",
|
|
|
|
+ "Connections": [
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "Input",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "ForwardSubsurfaceMSAAPass",
|
|
|
|
+ "Attachment": "ScatterDistanceOutput"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "Name": "SubsurfaceScatteringPass",
|
|
|
|
+ "TemplateName": "SubsurfaceScatteringPassTemplate",
|
|
|
|
+ "Enabled": true,
|
|
|
|
+ "Connections": [
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "InputDiffuse",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "MSAAResolveDiffusePass",
|
|
|
|
+ "Attachment": "Output"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "InputLinearDepth",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "DepthPrePass",
|
|
|
|
+ "Attachment": "DepthLinear"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "InputScatterDistance",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "MSAAResolveScatterDistancePass",
|
|
|
|
+ "Attachment": "Output"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "PassData": {
|
|
|
|
+ "$type": "ComputePassData",
|
|
|
|
+ "ShaderAsset": {
|
|
|
|
+ "FilePath": "Shaders/PostProcessing/ScreenSpaceSubsurfaceScatteringCS.shader"
|
|
|
|
+ },
|
|
|
|
+ "Make Fullscreen Pass": true,
|
|
|
|
+ "PipelineViewTag": "MainCamera"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "Name": "Ssao",
|
|
|
|
+ "TemplateName": "SsaoParentTemplate",
|
|
|
|
+ "Connections": [
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "LinearDepth",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "DepthPrePass",
|
|
|
|
+ "Attachment": "DepthLinear"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "LocalSlot": "Modulate",
|
|
|
|
+ "AttachmentRef": {
|
|
|
|
+ "Pass": "SubsurfaceScatteringPass",
|
|
|
|
+ "Attachment": "Output"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
{
|
|
{
|
|
"Name": "DiffuseSpecularMergePass",
|
|
"Name": "DiffuseSpecularMergePass",
|
|
"TemplateName": "DiffuseSpecularMergeTemplate",
|
|
"TemplateName": "DiffuseSpecularMergeTemplate",
|
|
@@ -332,7 +500,7 @@
|
|
{
|
|
{
|
|
"LocalSlot": "InputDiffuse",
|
|
"LocalSlot": "InputDiffuse",
|
|
"AttachmentRef": {
|
|
"AttachmentRef": {
|
|
- "Pass": "MSAAResolveDiffusePass",
|
|
|
|
|
|
+ "Pass": "Ssao",
|
|
"Attachment": "Output"
|
|
"Attachment": "Output"
|
|
}
|
|
}
|
|
},
|
|
},
|