123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- {
- "Type": "JsonSerialization",
- "Version": 1,
- "ClassName": "PassAsset",
- "ClassData": {
- "PassTemplate": {
- "Name": "DeferredLightingPassTemplate",
- "PassClass": "FullScreenTriangle",
- "Slots": [
- // Inputs...
- {
- "Name": "BRDFTextureInput",
- "ShaderInputName": "m_brdfMap",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader"
- },
- {
- "Name": "FullscreenShadow",
- "ShaderInputName": "m_fullscreenShadow",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader"
- },
- {
- "Name": "DirectionalLightShadowmap",
- "ShaderInputName": "m_directionalLightShadowmap",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader",
- "ImageViewDesc": {
- "IsArray": 1
- }
- },
- {
- "Name": "ExponentialShadowmapDirectional",
- "ShaderInputName": "m_directionalLightExponentialShadowmap",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader",
- "ImageViewDesc": {
- "IsArray": 1
- }
- },
- {
- "Name": "ProjectedShadowmap",
- "ShaderInputName": "m_projectedShadowmaps",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader",
- "ImageViewDesc": {
- "IsArray": 1
- }
- },
- {
- "Name": "ExponentialShadowmapProjected",
- "ShaderInputName": "m_projectedExponentialShadowmap",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader",
- "ImageViewDesc": {
- "IsArray": 1
- }
- },
- {
- "Name": "TileLightData",
- "SlotType": "Input",
- "ShaderInputName": "m_tileLightData",
- "ScopeAttachmentUsage": "Shader"
- },
- {
- "Name": "LightListRemapped",
- "SlotType": "Input",
- "ShaderInputName": "m_lightListRemapped",
- "ScopeAttachmentUsage": "Shader"
- },
- {
- "Name": "BaseColor",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader",
- "ShaderInputName": "m_baseColor"
- },
- {
- "Name": "RoughnessMetal",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader",
- "ShaderInputName": "m_roughnessMetal"
- },
- {
- "Name": "Normal",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader",
- "ShaderInputName": "m_normal"
- },
- {
- "Name": "DepthStencil",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "DepthStencil"
- },
- {
- "Name": "InputDepthStencil",
- "SlotType": "Input",
- "ShaderInputName": "m_depthStencilTexture",
- "ScopeAttachmentUsage": "Shader",
- "ImageViewDesc": {
- "AspectFlags": [
- "Depth"
- ]
- }
- },
- // Outputs...
- {
- "Name": "DiffuseOutput",
- "SlotType": "Output",
- "ScopeAttachmentUsage": "RenderTarget",
- "LoadStoreAction": {
- "ClearValue": {
- "Value": [
- 0.0,
- 0.0,
- 0.0,
- 0.0
- ]
- },
- "LoadAction": "Clear"
- }
- },
- {
- "Name": "SpecularOutput",
- "SlotType": "Output",
- "ScopeAttachmentUsage": "RenderTarget",
- "LoadStoreAction": {
- "ClearValue": {
- "Value": [
- 0.4000000059604645,
- 0.4000000059604645,
- 0.4000000059604645,
- 0.0
- ]
- },
- "LoadAction": "Clear"
- }
- },
- {
- "Name": "AlbedoOutput",
- "SlotType": "Output",
- "ScopeAttachmentUsage": "RenderTarget",
- "LoadStoreAction": {
- "ClearValue": {
- "Value": [
- 0.0,
- 0.0,
- 0.0,
- 0.0
- ]
- },
- "LoadAction": "Clear"
- }
- },
- {
- "Name": "SpecularF0Output",
- "SlotType": "Output",
- "ScopeAttachmentUsage": "RenderTarget",
- "LoadStoreAction": {
- "ClearValue": {
- "Value": [
- 0.0,
- 0.0,
- 0.0,
- 0.0
- ]
- },
- "LoadAction": "Clear"
- }
- }
- ],
- "ImageAttachments": [
- {
- "Name": "DiffuseImage",
- "SizeSource": {
- "Source": {
- "Pass": "Parent",
- "Attachment": "PipelineOutput"
- }
- },
- "MultisampleSource": {
- "Pass": "This",
- "Attachment": "DepthStencil"
- },
- "ImageDescriptor": {
- "Format": "R16G16B16A16_FLOAT",
- "SharedQueueMask": "Graphics",
- "BindFlags": [
- "ShaderReadWrite",
- "Color"
- ]
- }
- },
- {
- "Name": "SpecularImage",
- "SizeSource": {
- "Source": {
- "Pass": "Parent",
- "Attachment": "PipelineOutput"
- }
- },
- "MultisampleSource": {
- "Pass": "This",
- "Attachment": "DepthStencil"
- },
- "ImageDescriptor": {
- "Format": "R16G16B16A16_FLOAT",
- "SharedQueueMask": "Graphics"
- }
- },
- {
- "Name": "AlbedoImage",
- "SizeSource": {
- "Source": {
- "Pass": "Parent",
- "Attachment": "PipelineOutput"
- }
- },
- "MultisampleSource": {
- "Pass": "This",
- "Attachment": "DepthStencil"
- },
- "ImageDescriptor": {
- "Format": "R8G8B8A8_UNORM",
- "SharedQueueMask": "Graphics"
- }
- },
- {
- "Name": "SpecularF0Image",
- "SizeSource": {
- "Source": {
- "Pass": "Parent",
- "Attachment": "PipelineOutput"
- }
- },
- "MultisampleSource": {
- "Pass": "This",
- "Attachment": "DepthStencil"
- },
- "ImageDescriptor": {
- "Format": "R8G8B8A8_UNORM",
- "SharedQueueMask": "Graphics"
- }
- },
- {
- "Name": "BRDFTexture",
- "Lifetime": "Imported",
- "AssetRef": {
- "FilePath": "Textures/BRDFTexture.attimage"
- }
- }
- ],
- "Connections": [
- {
- "LocalSlot": "DiffuseOutput",
- "AttachmentRef": {
- "Pass": "This",
- "Attachment": "DiffuseImage"
- }
- },
- {
- "LocalSlot": "SpecularOutput",
- "AttachmentRef": {
- "Pass": "This",
- "Attachment": "SpecularImage"
- }
- },
- {
- "LocalSlot": "AlbedoOutput",
- "AttachmentRef": {
- "Pass": "This",
- "Attachment": "AlbedoImage"
- }
- },
- {
- "LocalSlot": "SpecularF0Output",
- "AttachmentRef": {
- "Pass": "This",
- "Attachment": "SpecularF0Image"
- }
- },
- {
- "LocalSlot": "BRDFTextureInput",
- "AttachmentRef": {
- "Pass": "This",
- "Attachment": "BRDFTexture"
- }
- },
- {
- "LocalSlot": "FullscreenShadow",
- "AttachmentRef": {
- "Pass": "PipelineGlobal",
- "Attachment": "FullscreenShadowBuffer"
- }
- }
- ],
- "PassData": {
- "$type": "FullscreenTrianglePassData",
- "ShaderAsset": {
- // TODO(DeferredPOC): Make the pass system support source-relative paths
- "FilePath": "Passes/PrototypeDeferredPipeline/DeferredLighting.shader"
- },
- "PipelineViewTag": "MainCamera"
- }
- }
- }
- }
|