Selaa lähdekoodia

Making the connection to the DepthLinear attachment through a slot instead of "PipelineGlobal" (#19102)

Signed-off-by: Johannes Ugb (Huawei) <[email protected]>
Johannes 1 viikko sitten
vanhempi
commit
ce1736b071

+ 7 - 0
Gems/Atom/Feature/Common/Assets/Passes/OpaqueParent.pass

@@ -532,6 +532,13 @@
                                 "Pass": "SubsurfaceScatteringPass",
                                 "Pass": "SubsurfaceScatteringPass",
                                 "Attachment": "Output"
                                 "Attachment": "Output"
                             }
                             }
+                        },
+                        {
+                            "LocalSlot": "DepthLinear",
+                            "AttachmentRef": {
+                                "Pass": "Parent",
+                                "Attachment": "DepthLinear"
+                            }
                         }
                         }
                     ]
                     ]
                 },
                 },

+ 7 - 2
Gems/Atom/Feature/Common/Assets/Passes/SsaoParent.pass

@@ -12,6 +12,11 @@
                     "SlotType": "Input",
                     "SlotType": "Input",
                     "ScopeAttachmentUsage": "Shader"
                     "ScopeAttachmentUsage": "Shader"
                 },
                 },
+                {
+                    "Name": "DepthLinear",
+                    "SlotType": "Input",
+                    "ScopeAttachmentUsage": "Shader"
+                },
                 {
                 {
                     "Name": "Output",
                     "Name": "Output",
                     "SlotType": "Output",
                     "SlotType": "Output",
@@ -36,7 +41,7 @@
                         {
                         {
                             "LocalSlot": "FullResDepth",
                             "LocalSlot": "FullResDepth",
                             "AttachmentRef": {
                             "AttachmentRef": {
-                                "Pass": "PipelineGlobal",
+                                "Pass": "Parent",
                                 "Attachment": "DepthLinear"
                                 "Attachment": "DepthLinear"
                             }
                             }
                         }
                         }
@@ -84,7 +89,7 @@
                         {
                         {
                             "LocalSlot": "FullResDepth",
                             "LocalSlot": "FullResDepth",
                             "AttachmentRef": {
                             "AttachmentRef": {
-                                "Pass": "PipelineGlobal",
+                                "Pass": "Parent",
                                 "Attachment": "DepthLinear"
                                 "Attachment": "DepthLinear"
                             }
                             }
                         },
                         },