You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Atom/Feature/Common/Assets/Passes/DiffuseGlobalIllumination.pass

202 lines
7.8 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "DiffuseGlobalIlluminationPassTemplate",
"PassClass": "ParentPass",
"Slots": [
{
"Name": "AlbedoInput",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "NormalInput",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "DiffuseInputOutput",
"SlotType": "InputOutput",
"ScopeAttachmentUsage": "RenderTarget"
},
{
"Name": "DepthStencilInputOutput",
"SlotType": "InputOutput",
"ScopeAttachmentUsage": "DepthStencil"
},
{
"Name": "IrradianceOutput",
"SlotType": "InputOutput",
"ScopeAttachmentUsage": "RenderTarget",
"LoadStoreAction": {
"ClearValue": {
"Value": [
0.0,
0.0,
0.0,
0.0
]
},
"LoadAction": "Clear"
}
}
],
"ImageAttachments": [
{
"Name": "IrradianceImage",
"SizeSource": {
"Source": {
"Pass": "This",
"Attachment": "NormalInput"
},
"Multipliers": {
"WidthMultiplier": 0.25,
"HeightMultiplier": 0.25
}
},
"MultisampleSource": {
"Pass": "This",
"Attachment": "NormalInput"
},
"ImageDescriptor": {
"Format": "R16G16B16A16_FLOAT",
"SharedQueueMask": "Graphics"
}
}
],
"Connections": [
{
"LocalSlot": "IrradianceOutput",
"AttachmentRef": {
"Pass": "This",
"Attachment": "IrradianceImage"
}
}
],
"PassRequests": [
{
"Name": "DiffuseProbeGridDownsamplePass",
"TemplateName": "DiffuseProbeGridDownsamplePassTemplate",
"Connections": [
{
"LocalSlot": "NormalInput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "NormalInput"
}
},
{
"LocalSlot": "DepthStencilTextureInput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "DepthStencilInputOutput"
}
}
]
},
{
"Name": "DiffuseProbeGridRenderPass",
"TemplateName": "DiffuseProbeGridRenderPassTemplate",
"Connections": [
{
"LocalSlot": "NormalInput",
"AttachmentRef": {
"Pass": "DiffuseProbeGridDownsamplePass",
"Attachment": "DownsampledNormalOutput"
}
},
{
"LocalSlot": "DepthStencilInput",
"AttachmentRef": {
"Pass": "DiffuseProbeGridDownsamplePass",
"Attachment": "DownsampledDepthOutput"
}
},
{
"LocalSlot": "DepthStencilTextureInput",
"AttachmentRef": {
"Pass": "DiffuseProbeGridDownsamplePass",
"Attachment": "DownsampledDepthOutput"
}
},
{
"LocalSlot": "Output",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "IrradianceOutput"
}
}
]
},
{
"Name": "DiffuseCompositePass",
"TemplateName": "DiffuseCompositePassTemplate",
"Connections": [
{
"LocalSlot": "DownsampledIrradianceInput",
"AttachmentRef": {
"Pass": "DiffuseProbeGridRenderPass",
"Attachment": "Output"
}
},
{
"LocalSlot": "DownsampledDepthStencilTextureInput",
"AttachmentRef": {
"Pass": "DiffuseProbeGridDownsamplePass",
"Attachment": "DownsampledDepthOutput"
}
},
{
"LocalSlot": "DownsampledNormalInput",
"AttachmentRef": {
"Pass": "DiffuseProbeGridDownsamplePass",
"Attachment": "DownsampledNormalOutput"
}
},
{
"LocalSlot": "AlbedoInput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "AlbedoInput"
}
},
{
"LocalSlot": "NormalInput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "NormalInput"
}
},
{
"LocalSlot": "DepthStencilTextureInput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "DepthStencilInputOutput"
}
},
{
"LocalSlot": "DiffuseInputOutput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "DiffuseInputOutput"
}
},
{
"LocalSlot": "DepthStencilInputOutput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "DepthStencilInputOutput"
}
}
]
}
]
}
}
}