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.
162 lines
5.8 KiB
Plaintext
162 lines
5.8 KiB
Plaintext
{
|
|
"Type": "JsonSerialization",
|
|
"Version": 1,
|
|
"ClassName": "PassAsset",
|
|
"ClassData": {
|
|
"PassTemplate": {
|
|
"Name": "DiffuseProbeGridDownsamplePassTemplate",
|
|
"PassClass": "FullScreenTriangle",
|
|
"Slots": [
|
|
{
|
|
"Name": "NormalInput",
|
|
"SlotType": "Input",
|
|
"ScopeAttachmentUsage": "Shader"
|
|
},
|
|
{
|
|
"Name": "DepthStencilTextureInput",
|
|
"SlotType": "Input",
|
|
"ScopeAttachmentUsage": "Shader",
|
|
"ImageViewDesc": {
|
|
"AspectFlags": [
|
|
"Depth"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"Name": "DownsampledDepthOutput",
|
|
"SlotType": "Output",
|
|
"ScopeAttachmentUsage": "DepthStencil",
|
|
"LoadStoreAction": {
|
|
"LoadAction": "DontCare",
|
|
"LoadActionStencil": "DontCare"
|
|
}
|
|
},
|
|
{
|
|
"Name": "DownsampledNormalOutput",
|
|
"SlotType": "Output",
|
|
"ScopeAttachmentUsage": "RenderTarget",
|
|
"LoadStoreAction": {
|
|
"LoadAction": "DontCare"
|
|
}
|
|
},
|
|
{
|
|
// Note: this is attached here to ensure that the image is cleared,
|
|
// but it is not used as an output from the shader
|
|
"Name": "IrradianceOutput",
|
|
"SlotType": "Output",
|
|
"ScopeAttachmentUsage": "RenderTarget",
|
|
"LoadStoreAction": {
|
|
"ClearValue": {
|
|
"Value": [
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
]
|
|
},
|
|
"LoadAction": "Clear"
|
|
}
|
|
}
|
|
],
|
|
"ImageAttachments": [
|
|
{
|
|
"Name": "DownsampledDepthImage",
|
|
"SizeSource": {
|
|
"Source": {
|
|
"Pass": "Parent",
|
|
"Attachment": "DepthStencilInputOutput"
|
|
},
|
|
"Multipliers": {
|
|
"WidthMultiplier": 0.25,
|
|
"HeightMultiplier": 0.25
|
|
}
|
|
},
|
|
"MultisampleSource": {
|
|
"Pass": "Parent",
|
|
"Attachment": "DepthStencilInputOutput"
|
|
},
|
|
"FormatSource": {
|
|
"Pass": "Parent",
|
|
"Attachment": "DepthStencilInputOutput"
|
|
},
|
|
"ImageDescriptor": {
|
|
"SharedQueueMask": "Graphics"
|
|
}
|
|
},
|
|
{
|
|
"Name": "DownsampledNormalImage",
|
|
"SizeSource": {
|
|
"Source": {
|
|
"Pass": "This",
|
|
"Attachment": "NormalInput"
|
|
},
|
|
"Multipliers": {
|
|
"WidthMultiplier": 0.25,
|
|
"HeightMultiplier": 0.25
|
|
}
|
|
},
|
|
"MultisampleSource": {
|
|
"Pass": "This",
|
|
"Attachment": "NormalInput"
|
|
},
|
|
"ImageDescriptor": {
|
|
"Format": "R16G16B16A16_FLOAT",
|
|
"SharedQueueMask": "Graphics"
|
|
}
|
|
},
|
|
{
|
|
"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": "DownsampledNormalOutput",
|
|
"AttachmentRef": {
|
|
"Pass": "This",
|
|
"Attachment": "DownsampledNormalImage"
|
|
}
|
|
},
|
|
{
|
|
"LocalSlot": "DownsampledDepthOutput",
|
|
"AttachmentRef": {
|
|
"Pass": "This",
|
|
"Attachment": "DownsampledDepthImage"
|
|
}
|
|
},
|
|
{
|
|
"LocalSlot": "IrradianceOutput",
|
|
"AttachmentRef": {
|
|
"Pass": "This",
|
|
"Attachment": "IrradianceImage"
|
|
}
|
|
}
|
|
],
|
|
"PassData": {
|
|
"$type": "FullscreenTrianglePassData",
|
|
"ShaderAsset": {
|
|
"FilePath": "Shaders/DiffuseGlobalIllumination/DiffuseProbeGridDownsample.shader"
|
|
},
|
|
"PipelineViewTag": "MainCamera"
|
|
}
|
|
}
|
|
}
|
|
}
|