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/BloomDownsample.pass

108 lines
3.5 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "BloomDownsamplePassTemplate",
"PassClass": "BloomDownsamplePass",
"Slots": [
{
"Name": "Input",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "Output",
"ShaderInputName": "m_targetTexture",
"SlotType": "Output",
"ScopeAttachmentUsage": "Shader",
"LoadStoreAction": {
"ClearValue": {
"Value": [
0.0,
0.0,
0.0,
0.0
]
},
"LoadAction": "Clear"
}
},
{
"Name": "BlurImageResource",
"SlotType": "Output",
"ScopeAttachmentUsage": "Shader"
}
],
"ImageAttachments": [
{
"Name": "DownsampledImage",
"SizeSource": {
"Source": {
"Pass": "This",
"Attachment": "Input"
},
"Multipliers":{
"WidthMultiplier" : "0.5",
"HeightMultiplier": "0.5"
}
},
"FormatSource": {
"Pass": "This",
"Attachment": "Input"
},
"ImageDescriptor": {
"MipLevels": "5",
"SharedQueueMask": 3
}
},
{
"Name": "BlurPassImage",
"SizeSource": {
"Source": {
"Pass": "This",
"Attachment": "Input"
},
"Multipliers":{
"WidthMultiplier" : "0.5",
"HeightMultiplier": "0.5"
}
},
"FormatSource": {
"Pass": "This",
"Attachment": "Input"
},
"ImageDescriptor": {
"MipLevels": "5",
"SharedQueueMask": 3
}
}
],
"Connections": [
{
"LocalSlot": "Output",
"AttachmentRef": {
"Pass": "This",
"Attachment": "DownsampledImage"
}
},
{
"LocalSlot": "BlurImageResource",
"AttachmentRef": {
"Pass": "This",
"Attachment": "BlurPassImage"
}
}
],
"PassData": {
"$type": "ComputePassData",
"ShaderAsset": {
"FilePath": "Shaders/PostProcessing/BloomDownsampleCS.shader"
},
"Make Fullscreen Pass": true
}
}
}
}