This commit is contained in:
2026-11-24 15:51:02 +01:00
parent cca4d73e41
commit f4aa17114a
22092 changed files with 5042406 additions and 0 deletions
@@ -0,0 +1,6 @@
{
"displayName":"Custom Lighting",
"interactiveImport": "false",
"description":"This sample helps you customize the URP lighting model in Shader Graph to achieve a unique look for your project or make the lighting cheaper. Learn from the included examples to create lit shaders without fog, change the way SSAO and decals are applied, and create stylized rendering. Get additional templates for the template browser and benefit from a comprehensive library of subgraphs for all types of lighting operations.",
"createSeparatePackage": true
}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a884b08765e3a5b45a80ac9e51ee0b84
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: dfb198c1b00665b49b8e3f8ab63973c4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: a3a9b0a41d65ca547b6c635e25ca4ffa
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 3d651c4b8793f07419846ac0740d1a21
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: d642608d9e2e3d446b4299c4d50b18d8
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 52f2243396571e9449f18f8b5f237d00
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 97b36dcc0c1df064bab3b4b47d231089
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5ebaf33091ccfb74b8ace61f5af801f6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,962 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "2d8d07a3f026405394826aea86abbfc8",
"m_Properties": [
{
"m_Id": "3a565a44841d4b729f8e86b08d09299c"
},
{
"m_Id": "db7fbe8313f5438386d8f4097cf6f1ba"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "d8f8aa152fe54e10ba2539ee3fca6a14"
}
],
"m_Nodes": [
{
"m_Id": "68b19672d9fd4bb59d2e7c884000a18a"
},
{
"m_Id": "5e35c0fc2eee4cf7ae47da45409fa2a7"
},
{
"m_Id": "d72d925c86ff4010a968b702f0972f69"
},
{
"m_Id": "ace431e6da4f4817b7a756319d905b70"
},
{
"m_Id": "8e44d4af021e48779eeb1b313c3e8c79"
},
{
"m_Id": "b5765aacbdae470e866a47ed0780d19e"
},
{
"m_Id": "75fefebc27be4f91ad8979f2851c52b8"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5e35c0fc2eee4cf7ae47da45409fa2a7"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "75fefebc27be4f91ad8979f2851c52b8"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "75fefebc27be4f91ad8979f2851c52b8"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b5765aacbdae470e866a47ed0780d19e"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "8e44d4af021e48779eeb1b313c3e8c79"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b5765aacbdae470e866a47ed0780d19e"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "ace431e6da4f4817b7a756319d905b70"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "5e35c0fc2eee4cf7ae47da45409fa2a7"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b5765aacbdae470e866a47ed0780d19e"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "68b19672d9fd4bb59d2e7c884000a18a"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "d72d925c86ff4010a968b702f0972f69"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "5e35c0fc2eee4cf7ae47da45409fa2a7"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "d72d925c86ff4010a968b702f0972f69"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "5e35c0fc2eee4cf7ae47da45409fa2a7"
},
"m_SlotId": 1
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Lighting/Components/Ambient",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "68b19672d9fd4bb59d2e7c884000a18a"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "3170d33086dc4e9fb348e49b56e8bf0a",
"m_Id": 1,
"m_DisplayName": "Connected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Connected",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "3a565a44841d4b729f8e86b08d09299c",
"m_Guid": {
"m_GuidSerialized": "0f4c42f6-ac0d-4525-aac4-a7d0f04c16c8"
},
"m_Name": "NormalWS",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "NormalWS",
"m_DefaultReferenceName": "_NormalWS",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": true,
"m_CustomSlotLabel": "NormalWS",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "4617c444d7664226a13e89270465fb4d",
"m_Id": 4,
"m_DisplayName": "DynamicUV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "DynamicUV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [],
"m_Channel": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "47faf97b5b0c4401ba198c51a40eb5db",
"m_Id": 3,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "57713b5c187443ed91103a075bf21428",
"m_Id": 2,
"m_DisplayName": "NotConnected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "NotConnected",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "59eb190017174745838411cbc42c2b90",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BranchOnInputConnectionNode",
"m_ObjectId": "5e35c0fc2eee4cf7ae47da45409fa2a7",
"m_Group": {
"m_Id": ""
},
"m_Name": "Branch On Input Connection",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -653.9999389648438,
"y": 119.33331298828125,
"width": 207.33331298828126,
"height": 143.99996948242188
}
},
"m_Slots": [
{
"m_Id": "a0bc6c990a2047a0bfdaccccc5e10d9f"
},
{
"m_Id": "3170d33086dc4e9fb348e49b56e8bf0a"
},
{
"m_Id": "57713b5c187443ed91103a075bf21428"
},
{
"m_Id": "47faf97b5b0c4401ba198c51a40eb5db"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "68b19672d9fd4bb59d2e7c884000a18a",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 9.333373069763184,
"y": 246.00003051757813,
"width": 100.0000228881836,
"height": 78.66671752929688
}
},
"m_Slots": [
{
"m_Id": "b17da22bf12b49938df47c0ee389775e"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot",
"m_ObjectId": "69d30c2f784048089fe03fcde47d9e4c",
"m_Id": 0,
"m_DisplayName": "NormalWS",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "NormalWS",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BakedGINode",
"m_ObjectId": "75fefebc27be4f91ad8979f2851c52b8",
"m_Group": {
"m_Id": ""
},
"m_Name": "Baked GI",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -343.3333435058594,
"y": 119.33341217041016,
"width": 184.0000762939453,
"height": 186.66665649414063
}
},
"m_Slots": [
{
"m_Id": "69d30c2f784048089fe03fcde47d9e4c"
},
{
"m_Id": "a6950afa821d47bc9023af06c14ac542"
},
{
"m_Id": "f6929a00d71044bc925df80a7e75e2fc"
},
{
"m_Id": "4617c444d7664226a13e89270465fb4d"
},
{
"m_Id": "c0f218cf259e44159c07edffe44bda13"
}
],
"synonyms": [
"global illumination"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_ApplyScaling": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "8ac48f141aac4077a96410f90de787ce",
"m_Id": 0,
"m_DisplayName": "Ambient Occlusion",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "8e44d4af021e48779eeb1b313c3e8c79",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -324.6666564941406,
"y": 310.00006103515627,
"width": 173.99996948242188,
"height": 36.0
}
},
"m_Slots": [
{
"m_Id": "8ac48f141aac4077a96410f90de787ce"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "db7fbe8313f5438386d8f4097cf6f1ba"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyConnectionStateMaterialSlot",
"m_ObjectId": "a0bc6c990a2047a0bfdaccccc5e10d9f",
"m_Id": 0,
"m_DisplayName": "Input",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Input",
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot",
"m_ObjectId": "a6950afa821d47bc9023af06c14ac542",
"m_Id": 2,
"m_DisplayName": "PositionWS",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "PositionWS",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalVectorNode",
"m_ObjectId": "ace431e6da4f4817b7a756319d905b70",
"m_Group": {
"m_Id": ""
},
"m_Name": "Normal Vector",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -884.6666870117188,
"y": 155.3332977294922,
"width": 207.3333740234375,
"height": 134.66673278808595
}
},
"m_Slots": [
{
"m_Id": "f878e660f09b483b96567a3d4cd75e85"
}
],
"synonyms": [
"surface direction"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "b17da22bf12b49938df47c0ee389775e",
"m_Id": 1,
"m_DisplayName": "Ambient",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Ambient",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
"m_ObjectId": "b5765aacbdae470e866a47ed0780d19e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -137.33328247070313,
"y": 246.00003051757813,
"width": 131.33335876464845,
"height": 120.00006103515625
}
},
"m_Slots": [
{
"m_Id": "59eb190017174745838411cbc42c2b90"
},
{
"m_Id": "c5ff61f6c3af4b32875e4128cd8b2d5c"
},
{
"m_Id": "ff2ac5d4a15740f693d2f453a4770302"
}
],
"synonyms": [
"multiplication",
"times",
"x"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "c0f218cf259e44159c07edffe44bda13",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "c5ff61f6c3af4b32875e4128cd8b2d5c",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"e00": 2.0,
"e01": 2.0,
"e02": 2.0,
"e03": 2.0,
"e10": 2.0,
"e11": 2.0,
"e12": 2.0,
"e13": 2.0,
"e20": 2.0,
"e21": 2.0,
"e22": 2.0,
"e23": 2.0,
"e30": 2.0,
"e31": 2.0,
"e32": 2.0,
"e33": 2.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "d72d925c86ff4010a968b702f0972f69",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -810.6666259765625,
"y": 119.33331298828125,
"width": 133.33331298828126,
"height": 35.99998474121094
}
},
"m_Slots": [
{
"m_Id": "fc482dfc88004f2a8580d8634893c19f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "3a565a44841d4b729f8e86b08d09299c"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "d8f8aa152fe54e10ba2539ee3fca6a14",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "3a565a44841d4b729f8e86b08d09299c"
},
{
"m_Id": "db7fbe8313f5438386d8f4097cf6f1ba"
}
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "db7fbe8313f5438386d8f4097cf6f1ba",
"m_Guid": {
"m_GuidSerialized": "9b45ce51-f4b8-4f9d-899a-bc08d586fdaa"
},
"m_Name": "Ambient Occlusion",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Ambient Occlusion",
"m_DefaultReferenceName": "_Ambient_Occlusion",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": 1.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
},
"m_SliderType": 0,
"m_SliderPower": 3.0,
"m_EnumType": 0,
"m_CSharpEnumString": "",
"m_EnumNames": [
"Default"
],
"m_EnumValues": [
0
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "f6929a00d71044bc925df80a7e75e2fc",
"m_Id": 3,
"m_DisplayName": "StaticUV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "StaticUV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [],
"m_Channel": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "f878e660f09b483b96567a3d4cd75e85",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 1.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "fc482dfc88004f2a8580d8634893c19f",
"m_Id": 0,
"m_DisplayName": "NormalWS",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "ff2ac5d4a15740f693d2f453a4770302",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 7111c20037bca6d45b0c2216a0b91354
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 9de43c7b9d874764693811de48cfc889
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 300875fdd653fe340b08ad1547984cf1
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: f70e1da6fb6a720439a85a6a2c814a87
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,332 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "3c9f3a92432249aa96a90dce45336128",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "27505ac8c5814921bee474ae6d4af1fe"
}
],
"m_Nodes": [
{
"m_Id": "f1b6bd3434d4498b85acd0f133d2d277"
},
{
"m_Id": "0f48e52099d04b51a6b1dc52cce50d39"
},
{
"m_Id": "0fdc511287e14fd48ca909caba575383"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0f48e52099d04b51a6b1dc52cce50d39"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f1b6bd3434d4498b85acd0f133d2d277"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0f48e52099d04b51a6b1dc52cce50d39"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f1b6bd3434d4498b85acd0f133d2d277"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0fdc511287e14fd48ca909caba575383"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0f48e52099d04b51a6b1dc52cce50d39"
},
"m_SlotId": 2
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Lighting/Components/Ambient",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "f1b6bd3434d4498b85acd0f133d2d277"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "0f48e52099d04b51a6b1dc52cce50d39",
"m_Group": {
"m_Id": ""
},
"m_Name": "SSAO (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -402.0,
"y": 0.0,
"width": 378.0,
"height": 120.0
}
},
"m_Slots": [
{
"m_Id": "690e9a551dab456fbcbc778a0ccfcbf4"
},
{
"m_Id": "e501e71319eb496f9333eceb0c13822f"
},
{
"m_Id": "6997c7a1c3934119b792e439d3971aae"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "SSAO",
"m_FunctionSource": "",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "#if defined(_SCREEN_SPACE_OCCLUSION) && !defined(_SURFACE_TYPE_TRANSPARENT) && !defined(SHADERGRAPH_PREVIEW)\r\n float ssao = saturate(SampleAmbientOcclusion(normalizedScreenSpaceUV) + (1.0 - _AmbientOcclusionParam.x));\r\n indirectAmbientOcclusion = ssao;\r\n directAmbientOcclusion = lerp(half(1.0), ssao, _AmbientOcclusionParam.w);\r\n#else\r\n directAmbientOcclusion = half(1.0);\r\n indirectAmbientOcclusion = half(1.0);\r\n#endif"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenPositionNode",
"m_ObjectId": "0fdc511287e14fd48ca909caba575383",
"m_Group": {
"m_Id": ""
},
"m_Name": "Screen Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -549.333251953125,
"y": 0.000021630818082485348,
"width": 147.33328247070313,
"height": 131.99998474121095
}
},
"m_Slots": [
{
"m_Id": "46af1aa2afc64ddcba7b9a73e20a165e"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_ScreenSpaceType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "27505ac8c5814921bee474ae6d4af1fe",
"m_Name": "",
"m_ChildObjectList": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "46af1aa2afc64ddcba7b9a73e20a165e",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "685b6d8f65aa489c9e7be338cd23615f",
"m_Id": 2,
"m_DisplayName": "directAO",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "directAO",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "690e9a551dab456fbcbc778a0ccfcbf4",
"m_Id": 2,
"m_DisplayName": "normalizedScreenSpaceUV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "normalizedScreenSpaceUV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "6997c7a1c3934119b792e439d3971aae",
"m_Id": 1,
"m_DisplayName": "directAmbientOcclusion",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "directAmbientOcclusion",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "e501e71319eb496f9333eceb0c13822f",
"m_Id": 0,
"m_DisplayName": "indirectAmbientOcclusion",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "indirectAmbientOcclusion",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "ed013e50e3c04c53a1745b15669f771d",
"m_Id": 1,
"m_DisplayName": "indirectAO",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "indirectAO",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "f1b6bd3434d4498b85acd0f133d2d277",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -24.0,
"y": -0.0000038799698813818399,
"width": 109.33332061767578,
"height": 102.66666412353516
}
},
"m_Slots": [
{
"m_Id": "ed013e50e3c04c53a1745b15669f771d"
},
{
"m_Id": "685b6d8f65aa489c9e7be338cd23615f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 616a08cdf385c2d4997a5ed9d01e16a8
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 66e8fc89f7971da4c8964580a0eb9f80
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cc6c2a58202671d40b9850bf9cef756c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: ff20dfa766c0beb4085159da8f7ae0ea
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: a05f95cdea62a5046bf06a0b0edcef76
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 5daf3b2f3c9c40846abe46dad7d1682c
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 1983e569228a3ff448de6ddff7331366
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: ae75fc3743ec73b48985feb5b2c5893a
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 5d94ef1a30f7eb44db00536601c0ce5e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: c011e7fc1ff6bc147a11d3121cb9f527
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 9fa147bffeba64947a3b5be3f2966e15
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 17836dba1a675e246923104447b19cbd
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6dadca1ff1a721846ab7f6140f13ce62
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 61e571d2b9ede1240a524a849d20c997
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,177 @@
#ifndef DEBUG_LIGHTING_COMPLEXITY
#define DEBUG_LIGHTING_COMPLEXITY
#define PACK_BITS25(_x0,_x1,_x2,_x3,_x4,_x5,_x6,_x7,_x8,_x9,_x10,_x11,_x12,_x13,_x14,_x15,_x16,_x17,_x18,_x19,_x20,_x21,_x22,_x23,_x24) (_x0|(_x1<<1)|(_x2<<2)|(_x3<<3)|(_x4<<4)|(_x5<<5)|(_x6<<6)|(_x7<<7)|(_x8<<8)|(_x9<<9)|(_x10<<10)|(_x11<<11)|(_x12<<12)|(_x13<<13)|(_x14<<14)|(_x15<<15)|(_x16<<16)|(_x17<<17)|(_x18<<18)|(_x19<<19)|(_x20<<20)|(_x21<<21)|(_x22<<22)|(_x23<<23)|(_x24<<24))
#define _ 0
#define x 1
const static uint debugFontData[9][2] = {
{ PACK_BITS25(_,_,x,_,_, _,_,x,_,_, _,x,x,x,_, x,x,x,x,x, _,_,_,x,_), PACK_BITS25(x,x,x,x,x, _,x,x,x,_, x,x,x,x,x, _,x,x,x,_, _,x,x,x,_) },
{ PACK_BITS25(_,x,_,x,_, _,x,x,_,_, x,_,_,_,x, _,_,_,_,x, _,_,_,x,_), PACK_BITS25(x,_,_,_,_, x,_,_,_,x, _,_,_,_,x, x,_,_,_,x, x,_,_,_,x) },
{ PACK_BITS25(x,_,_,_,x, x,_,x,_,_, x,_,_,_,x, _,_,_,x,_, _,_,x,x,_), PACK_BITS25(x,_,_,_,_, x,_,_,_,_, _,_,_,x,_, x,_,_,_,x, x,_,_,_,x) },
{ PACK_BITS25(x,_,_,_,x, _,_,x,_,_, _,_,_,_,x, _,_,x,_,_, _,x,_,x,_), PACK_BITS25(x,_,x,x,_, x,_,_,_,_, _,_,_,x,_, x,_,_,_,x, x,_,_,_,x) },
{ PACK_BITS25(x,_,_,_,x, _,_,x,_,_, _,_,_,x,_, _,x,x,x,_, _,x,_,x,_), PACK_BITS25(x,x,_,_,x, x,x,x,x,_, _,_,x,_,_, _,x,x,x,_, _,x,x,x,x) },
{ PACK_BITS25(x,_,_,_,x, _,_,x,_,_, _,_,x,_,_, _,_,_,_,x, x,_,_,x,_), PACK_BITS25(_,_,_,_,x, x,_,_,_,x, _,_,x,_,_, x,_,_,_,x, _,_,_,_,x) },
{ PACK_BITS25(x,_,_,_,x, _,_,x,_,_, _,x,_,_,_, _,_,_,_,x, x,x,x,x,x), PACK_BITS25(_,_,_,_,x, x,_,_,_,x, _,x,_,_,_, x,_,_,_,x, _,_,_,_,x) },
{ PACK_BITS25(_,x,_,x,_, _,_,x,_,_, x,_,_,_,_, x,_,_,_,x, _,_,_,x,_), PACK_BITS25(x,_,_,_,x, x,_,_,_,x, _,x,_,_,_, x,_,_,_,x, x,_,_,_,x) },
{ PACK_BITS25(_,_,x,_,_, x,x,x,x,x, x,x,x,x,x, _,x,x,x,_, _,_,_,x,_), PACK_BITS25(_,x,x,x,_, _,x,x,x,_, _,x,_,_,_, _,x,x,x,_, _,x,x,x,_) }
};
#undef _
#undef x
#undef PACK_BITS25
bool SampleDebugFontData(int2 pixCoord, uint digit)
{
if (pixCoord.x < 0 || pixCoord.y < 0 || pixCoord.x >= 5 || pixCoord.y >= 9 || digit > 9)
return false;
return (debugFontData[8 - pixCoord.y][digit >= 5] >> ((digit % 5) * 5 + pixCoord.x)) & 1;
}
/*
* Sample up to 3 digits of a number. (Excluding leading zeroes)
*
* Note: Digit have a size of 5x8 pixels and spaced by 1 pixel
* See SampleDebugFontNumberAllDigits to sample all digits.
*
* @param pixCoord: pixel coordinate of the number sample
* @param number: number to sample
* @return true when the pixel is a pixel of a digit.
*/
bool SampleDebugFontDataNumber3Digits(int2 pixCoord, uint number)
{
pixCoord.y -= 4;
if (number <= 9)
{
return SampleDebugFontData(pixCoord - int2(6, 0), number);
}
else if (number <= 99)
{
return (SampleDebugFontData(pixCoord, (number / 10) % 10) | SampleDebugFontData(pixCoord - int2(6, 0), number % 10));
}
else
{
return (SampleDebugFontData(pixCoord, (number / 100)) | SampleDebugFontData(pixCoord - int2(4, 0),(number / 10) % 10) | SampleDebugFontData(pixCoord - int2(8, 0),(number / 10) % 10) );
}
}
#define DEBUG_COLORS_COUNT 12
#define kDebugColorBlack float4(0.0 / 255.0, 0.0 / 255.0, 0.0 / 255.0, 1.0) // #000000
#define kDebugColorLightPurple float4(166.0 / 255.0, 70.0 / 255.0, 242.0 / 255.0, 1.0) // #A646F2
#define kDebugColorDeepBlue float4(0.0 / 255.0, 26.0 / 255.0, 221.0 / 255.0, 1.0) // #001ADD
#define kDebugColorSkyBlue float4(65.0 / 255.0, 152.0 / 255.0, 224.0 / 255.0, 1.0) // #4198E0
#define kDebugColorLightBlue float4(158.0 / 255.0, 228.0 / 255.0, 251.0 / 255.0, 1.0) // #1A1D21
#define kDebugColorTeal float4(56.0 / 255.0, 243.0 / 255.0, 176.0 / 255.0, 1.0) // #38F3B0
#define kDebugColorBrightGreen float4(168.0 / 255.0, 238.0 / 255.0, 46.0 / 255.0, 1.0) // #A8EE2E
#define kDebugColorBrightYellow float4(255.0 / 255.0, 253.0 / 255.0, 76.0 / 255.0, 1.0) // #FFFD4C
#define kDebugColorDarkYellow float4(255.0 / 255.0, 214.0 / 255.0, 0.0 / 255.0, 1.0) // #FFD600
#define kDebugColorOrange float4(253.0 / 255.0, 152.0 / 255.0, 0.0 / 255.0, 1.0) // #FD9800
#define kDebugColorBrightRed float4(255.0 / 255.0, 67.0 / 255.0, 51.0 / 255.0, 1.0) // #FF4333
#define kDebugColorDarkRed float4(132.0 / 255.0, 10.0 / 255.0, 54.0 / 255.0, 1.0) // #840A36
// UX-verified colorblind-optimized "heat color gradient"
static const float4 kDebugColorGrad[DEBUG_COLORS_COUNT] = { kDebugColorBlack, kDebugColorLightPurple, kDebugColorDeepBlue,
kDebugColorSkyBlue, kDebugColorLightBlue, kDebugColorTeal, kDebugColorBrightGreen, kDebugColorBrightYellow,
kDebugColorDarkYellow, kDebugColorOrange, kDebugColorBrightRed, kDebugColorDarkRed };
float4 HeatMap(uint2 pixCoord, uint2 tileSize, uint n, uint maxN, float opacity)
{
int colorIndex = 1 + (int)floor(10 * (log2((float)n + 0.1f) / log2(float(maxN))));
colorIndex = clamp(colorIndex, 0, DEBUG_COLORS_COUNT-1);
float4 col = kDebugColorGrad[colorIndex];
int2 coord = (pixCoord & (tileSize - 1)) - int2(tileSize.x/4+1, tileSize.y/3-3);
float4 color = float4(PositivePow(col.rgb, 2.2), opacity * col.a);
if (n >= 0)
{
if (SampleDebugFontDataNumber3Digits(coord, n)) // Shadow
color = float4(0, 0, 0, 1);
if (SampleDebugFontDataNumber3Digits(coord + 1, n)) // Text
color = float4(1, 1, 1, 1);
}
return color;
}
void LightingComplexity_float(float2 normalizedScreenSpaceUV, float3 positionWS, float3 albedo, out float3 Out)
{
#if defined(SHADERGRAPH_PREVIEW)
Out = float3(0,0,0);
#else
#if USE_CLUSTER_LIGHT_LOOP
int numLights = URP_FP_DIRECTIONAL_LIGHTS_COUNT;
uint entityIndex;
ClusterIterator it = ClusterInit(normalizedScreenSpaceUV, positionWS, 0);
[loop] while (ClusterNext(it, entityIndex))
{
numLights++;
}
it = ClusterInit(normalizedScreenSpaceUV, positionWS, 1);
[loop] while (ClusterNext(it, entityIndex))
{
numLights++;
}
#else
// Assume a main light and add 1 to the additional lights.
int numLights = GetAdditionalLightsCount() + 1;
#endif
const uint2 tileSize = uint2(32,32);
const uint maxLights = 9;
const float opacity = 0.8f;
uint2 pixelCoord = uint2(normalizedScreenSpaceUV * _ScreenParams.xy);
half3 base = albedo;
half4 overlay = half4(HeatMap(pixelCoord, tileSize, numLights, maxLights, opacity));
uint2 tileCoord = (float2)pixelCoord / tileSize;
uint2 offsetInTile = pixelCoord - tileCoord * tileSize;
bool border = any(offsetInTile == 0 || offsetInTile == tileSize.x - 1);
if (border)
overlay = half4(1, 1, 1, 0.4f);
Out = half3(lerp(base.rgb, overlay.rgb, overlay.a));
#endif
}
void LightingComplexity_half(half2 normalizedScreenSpaceUV, half3 positionWS, half3 albedo, out half3 Out)
{
#if defined(SHADERGRAPH_PREVIEW)
Out = float3(0,0,0);
#else
#if USE_CLUSTER_LIGHT_LOOP
int numLights = URP_FP_DIRECTIONAL_LIGHTS_COUNT;
uint entityIndex;
ClusterIterator it = ClusterInit(normalizedScreenSpaceUV, positionWS, 0);
[loop] while (ClusterNext(it, entityIndex))
{
numLights++;
}
it = ClusterInit(normalizedScreenSpaceUV, positionWS, 1);
[loop] while (ClusterNext(it, entityIndex))
{
numLights++;
}
#else
// Assume a main light and add 1 to the additional lights.
int numLights = GetAdditionalLightsCount() + 1;
#endif
const uint2 tileSize = uint2(32,32);
const uint maxLights = 9;
const float opacity = 0.8f;
uint2 pixelCoord = uint2(normalizedScreenSpaceUV * _ScreenParams.xy);
half3 base = albedo;
half4 overlay = half4(HeatMap(pixelCoord, tileSize, numLights, maxLights, opacity));
uint2 tileCoord = (float2)pixelCoord / tileSize;
uint2 offsetInTile = pixelCoord - tileCoord * tileSize;
bool border = any(offsetInTile == 0 || offsetInTile == tileSize.x - 1);
if (border)
overlay = half4(1, 1, 1, 0.4f);
Out = half3(lerp(base.rgb, overlay.rgb, overlay.a));
#endif
}
#endif
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6083dc6c91ad6bf4c8a9eaae1ade27ee
ShaderIncludeImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 53d20e1f36b55014f99f9ccae649c798
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e75427e946b8d4a4a932103fb603c3d8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: df1922bb66ad760469b59ed5d531505e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 4245e7d96924b2646a4507601b56874c
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: cb5cb9cef826e9f448011787f0d627b2
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 064c637d39c23024caab68ae0c868045
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 97226c5d18e2d30429af586ffed3b336
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 3
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,522 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "de6916b9a7f040ab82640161054bdb00",
"m_Properties": [
{
"m_Id": "e6d22c143a234c53a79ccf66c2e64308"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "e6b8102988b249e195d59689b45e0f3a"
}
],
"m_Nodes": [
{
"m_Id": "958c18a5ad1d478aaed8958529b81985"
},
{
"m_Id": "626923dc627443639da97776de7dcc22"
},
{
"m_Id": "acabe3c84c9549f3880ce7d106150576"
},
{
"m_Id": "9cfca9aa08c7423bab62b39a01237d64"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "626923dc627443639da97776de7dcc22"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "9cfca9aa08c7423bab62b39a01237d64"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "9cfca9aa08c7423bab62b39a01237d64"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "958c18a5ad1d478aaed8958529b81985"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "acabe3c84c9549f3880ce7d106150576"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "9cfca9aa08c7423bab62b39a01237d64"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "acabe3c84c9549f3880ce7d106150576"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "9cfca9aa08c7423bab62b39a01237d64"
},
"m_SlotId": 2
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Lighting/Components",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "958c18a5ad1d478aaed8958529b81985"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "1c0788cd50c2410d96cda544eb4e0ebd",
"m_Id": 0,
"m_DisplayName": "Color",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Color",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "30f478f49d5e4c279040511b203572a6",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "626923dc627443639da97776de7dcc22",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -513.3333129882813,
"y": -62.0,
"width": 106.66665649414063,
"height": 36.0
}
},
"m_Slots": [
{
"m_Id": "68be2cb1e5c14fb78a24f3eab7885303"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "e6d22c143a234c53a79ccf66c2e64308"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "68be2cb1e5c14fb78a24f3eab7885303",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "6f7c4f482f0b4a819bd456fd98a32fc4",
"m_Id": 2,
"m_DisplayName": "T",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "T",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "80dbd850f6d6442d9ed7c0c5fd58f0b6",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot",
"m_ObjectId": "83769bfa6ed1439f8e0709194bbfe70c",
"m_Id": 2,
"m_DisplayName": "Position",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Position",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "958c18a5ad1d478aaed8958529b81985",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -156.0,
"y": -78.66665649414063,
"width": 86.6666259765625,
"height": 78.66665649414063
}
},
"m_Slots": [
{
"m_Id": "80dbd850f6d6442d9ed7c0c5fd58f0b6"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "96d8ce5e94ac411b9d205ca8ff3f4a43",
"m_Id": 3,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.LerpNode",
"m_ObjectId": "9cfca9aa08c7423bab62b39a01237d64",
"m_Group": {
"m_Id": ""
},
"m_Name": "Lerp",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -317.3333740234375,
"y": -78.66665649414063,
"width": 131.3333740234375,
"height": 143.99996948242188
}
},
"m_Slots": [
{
"m_Id": "30f478f49d5e4c279040511b203572a6"
},
{
"m_Id": "ddca3c0fcb9f40db820cb67e5d413e6e"
},
{
"m_Id": "6f7c4f482f0b4a819bd456fd98a32fc4"
},
{
"m_Id": "96d8ce5e94ac411b9d205ca8ff3f4a43"
}
],
"synonyms": [
"mix",
"blend",
"linear interpolate"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.FogNode",
"m_ObjectId": "acabe3c84c9549f3880ce7d106150576",
"m_Group": {
"m_Id": ""
},
"m_Name": "Fog",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -590.6666259765625,
"y": -26.0,
"width": 183.99996948242188,
"height": 102.66668701171875
}
},
"m_Slots": [
{
"m_Id": "83769bfa6ed1439f8e0709194bbfe70c"
},
{
"m_Id": "1c0788cd50c2410d96cda544eb4e0ebd"
},
{
"m_Id": "e1da196f97bb4db8bab2d4326eaf8f2e"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "ddca3c0fcb9f40db820cb67e5d413e6e",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "e1da196f97bb4db8bab2d4326eaf8f2e",
"m_Id": 1,
"m_DisplayName": "Density",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Density",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "e6b8102988b249e195d59689b45e0f3a",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "e6d22c143a234c53a79ccf66c2e64308"
}
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "e6d22c143a234c53a79ccf66c2e64308",
"m_Guid": {
"m_GuidSerialized": "53e27626-7d94-4248-9941-a1ad5f4d78bf"
},
"m_Name": "In",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "In",
"m_DefaultReferenceName": "_In",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 286ae83400099a24bba6faf005588be7
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,572 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "82a297373e9e41f29ef1c3a2f051fb84",
"m_Properties": [
{
"m_Id": "8a509e197dfa460ea57a37cf82b88230"
},
{
"m_Id": "f68d481e214a46b3a4b8abc7859c5b8d"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "1503f05cbffd45cd8dc08146aeff7e5f"
}
],
"m_Nodes": [
{
"m_Id": "2305e47ad4464ceba07a448cf1fb8c48"
},
{
"m_Id": "b3b8196f46224ae3a998bba24956de7f"
},
{
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
{
"m_Id": "fde52ad74bda46adabbcc34b42b16131"
},
{
"m_Id": "1dc55a6640574aaf8c04290eb0d5e816"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "1dc55a6640574aaf8c04290eb0d5e816"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b3b8196f46224ae3a998bba24956de7f"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b3b8196f46224ae3a998bba24956de7f"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2305e47ad4464ceba07a448cf1fb8c48"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fde52ad74bda46adabbcc34b42b16131"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
"m_SlotId": 0
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Lighting/Components",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "2305e47ad4464ceba07a448cf1fb8c48"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "1503f05cbffd45cd8dc08146aeff7e5f",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "8a509e197dfa460ea57a37cf82b88230"
},
{
"m_Id": "f68d481e214a46b3a4b8abc7859c5b8d"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "1dc55a6640574aaf8c04290eb0d5e816",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -344.99993896484377,
"y": 113.00001525878906,
"width": 114.0,
"height": 34.00001525878906
}
},
"m_Slots": [
{
"m_Id": "98fe87e5136a4f849c3483d117cb4e3d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "f68d481e214a46b3a4b8abc7859c5b8d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "2305e47ad4464ceba07a448cf1fb8c48",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 29.99998664855957,
"y": 46.5000114440918,
"width": 85.5000228881836,
"height": 76.99998474121094
}
},
"m_Slots": [
{
"m_Id": "4f3548e6117d4558a69e0b7c7e20cc34"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.AddNode",
"m_ObjectId": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2",
"m_Group": {
"m_Id": ""
},
"m_Name": "Add",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -230.8333740234375,
"y": 46.24998474121094,
"width": 129.5,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "58e23090deb34144951002f38ecece61"
},
{
"m_Id": "4d6ad567704549b08cb7c7a6d936df8e"
},
{
"m_Id": "970352e5ab974361967578d5fd2e2c34"
}
],
"synonyms": [
"addition",
"sum",
"plus"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "4d6ad567704549b08cb7c7a6d936df8e",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "4f3548e6117d4558a69e0b7c7e20cc34",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "58e23090deb34144951002f38ecece61",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "7b18a511cab04c9ebb76251c2836d982",
"m_Id": 0,
"m_DisplayName": "viewDir",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "8a509e197dfa460ea57a37cf82b88230",
"m_Guid": {
"m_GuidSerialized": "a1878c72-d3cb-4a6c-a1eb-e6ec3b6b84ff"
},
"m_Name": "viewDir",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "viewDir",
"m_DefaultReferenceName": "_viewDir",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "90718e9446dc43d29a8eb6eebea63eba",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "970352e5ab974361967578d5fd2e2c34",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "98fe87e5136a4f849c3483d117cb4e3d",
"m_Id": 0,
"m_DisplayName": "lightDir",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalizeNode",
"m_ObjectId": "b3b8196f46224ae3a998bba24956de7f",
"m_Group": {
"m_Id": ""
},
"m_Name": "Normalize",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -101.3333740234375,
"y": 46.24998474121094,
"width": 131.49993896484376,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "fa0e23366d8449c68af2eaee36b7a910"
},
{
"m_Id": "90718e9446dc43d29a8eb6eebea63eba"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "f68d481e214a46b3a4b8abc7859c5b8d",
"m_Guid": {
"m_GuidSerialized": "a1da7429-583c-46b9-8dde-3df1b87c446c"
},
"m_Name": "lightDir",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "lightDir",
"m_DefaultReferenceName": "_lightDir",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "fa0e23366d8449c68af2eaee36b7a910",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "fde52ad74bda46adabbcc34b42b16131",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -347.0,
"y": 79.00000762939453,
"width": 116.00006103515625,
"height": 34.00000762939453
}
},
"m_Slots": [
{
"m_Id": "7b18a511cab04c9ebb76251c2836d982"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "8a509e197dfa460ea57a37cf82b88230"
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: e6f25cf5cc5b2cc4da597068c1610d98
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,441 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "0c0fb68778114e62b83d099efd6a5560",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "0ed8affd0b2e4900b40f1fd3d9e67c01"
}
],
"m_Nodes": [
{
"m_Id": "1549c79363554810a204f77eb1c3e0df"
},
{
"m_Id": "70d2891fcf6441078175ae15c3935f14"
},
{
"m_Id": "4d2c13a7eb4648b58c30f81052575fa0"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "35792eabbe6e4038b09e2f9ba32ea6df"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4d2c13a7eb4648b58c30f81052575fa0"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "70d2891fcf6441078175ae15c3935f14"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "70d2891fcf6441078175ae15c3935f14"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1549c79363554810a204f77eb1c3e0df"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "70d2891fcf6441078175ae15c3935f14"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1549c79363554810a204f77eb1c3e0df"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "70d2891fcf6441078175ae15c3935f14"
},
"m_SlotId": 5
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1549c79363554810a204f77eb1c3e0df"
},
"m_SlotId": 3
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Lighting/Components",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "1549c79363554810a204f77eb1c3e0df"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "09cc1cc7893840c0b3637bb51d47645b",
"m_Id": 3,
"m_DisplayName": "ShadowAtten",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "ShadowAtten",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "0ed8affd0b2e4900b40f1fd3d9e67c01",
"m_Name": "",
"m_ChildObjectList": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "0f87204c3df9471080806c1d4ad538f7",
"m_Id": 1,
"m_DisplayName": "Direction",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Direction",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "1549c79363554810a204f77eb1c3e0df",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 6.00006103515625,
"y": 0.0,
"width": 124.0,
"height": 126.66668701171875
}
},
"m_Slots": [
{
"m_Id": "0f87204c3df9471080806c1d4ad538f7"
},
{
"m_Id": "d8368764d24a40dcbd978c1378a7260b"
},
{
"m_Id": "09cc1cc7893840c0b3637bb51d47645b"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
"m_ObjectId": "35792eabbe6e4038b09e2f9ba32ea6df",
"m_Title": "",
"m_Content": "Using this Custom Function node, we're able to call URP code functions directly in order to get the lighting data that isn't otherwise available in Shader Graph.",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": -252.0,
"y": 146.0,
"width": 216.0,
"height": 100.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "3e799ddb37634f2b8cc3586c711ffeae",
"m_Id": 0,
"m_DisplayName": "worldPos",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "worldPos",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.PositionNode",
"m_ObjectId": "4d2c13a7eb4648b58c30f81052575fa0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -459.0,
"y": 0.0,
"width": 206.0,
"height": 131.0
}
},
"m_Slots": [
{
"m_Id": "91e62c2f418a4b55a0ea4bf1afca2e2b"
}
],
"synonyms": [
"location"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 4,
"m_PositionSource": 0
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "70d2891fcf6441078175ae15c3935f14",
"m_Group": {
"m_Id": ""
},
"m_Name": "GetMainLightData (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -253.0,
"y": 0.0,
"width": 217.5,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "3e799ddb37634f2b8cc3586c711ffeae"
},
{
"m_Id": "e5d5d5fd021143418488129ad44dd94c"
},
{
"m_Id": "e26b6fea1aea48f5854ae9d1c02d9304"
},
{
"m_Id": "c6c41782f0644d469b2b503a020f22c9"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "GetMainLightData",
"m_FunctionSource": "3beadf505dbc54f4cae878435013d751",
"m_FunctionSourceUsePragmas": true,
"m_FunctionBody": "#ifdef SHADERGRAPH_PREVIEW\n direction = normalize(float3(-0.7,0.7,-0.7));\n color = float3(1,1,1);\n shadowAtten = 1;\n#else\n #if defined(UNIVERSAL_PIPELINE_CORE_INCLUDED)\n float4 shadowCoord = TransformWorldToShadowCoord(worldPos);\n Light mainLight = GetMainLight(shadowCoord);\n direction = mainLight.direction;\n color = mainLight.color;\n shadowAtten = mainLight.shadowAttenuation;\n #else\n direction = normalize(float3(-0.7, 0.7, -0.7));\n color = float3(1, 1, 1);\n shadowAtten = 0;\n #endif\n#endif"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "91e62c2f418a4b55a0ea4bf1afca2e2b",
"m_Id": 0,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "c6c41782f0644d469b2b503a020f22c9",
"m_Id": 5,
"m_DisplayName": "shadowAtten",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "shadowAtten",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "d8368764d24a40dcbd978c1378a7260b",
"m_Id": 2,
"m_DisplayName": "Color",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Color",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "e26b6fea1aea48f5854ae9d1c02d9304",
"m_Id": 3,
"m_DisplayName": "color",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "color",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "e5d5d5fd021143418488129ad44dd94c",
"m_Id": 2,
"m_DisplayName": "direction",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "direction",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: f97aba6a33b86e5498cdd202ba0c9313
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f63f0aa2661684746be6d0f16c7ead4c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 97bcb5ce74c00a14fbf4a879582f0483
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 57a8ea7c8f931c941b2bb57aedc451aa
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,651 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "d849dde5dadb4043ae95e3044cf6f6f2",
"m_Properties": [
{
"m_Id": "f5238825c9d84359ad3fa6be3ecc80d9"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "30a208011ad145b9afc6abc6f3f03dc1"
}
],
"m_Nodes": [
{
"m_Id": "7b2d256e77e9499fa065a26301d0eedf"
},
{
"m_Id": "c7e9a2c01b804964a64dd7499f62a400"
},
{
"m_Id": "663b867a23b04deaa88c2ebd79bcdbc7"
},
{
"m_Id": "bd8d33b85b2e46508bef0c6cc36f9dae"
},
{
"m_Id": "80f639c6927445458cce37e8c24909a1"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "663b867a23b04deaa88c2ebd79bcdbc7"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "bd8d33b85b2e46508bef0c6cc36f9dae"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "80f639c6927445458cce37e8c24909a1"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c7e9a2c01b804964a64dd7499f62a400"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "bd8d33b85b2e46508bef0c6cc36f9dae"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7b2d256e77e9499fa065a26301d0eedf"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c7e9a2c01b804964a64dd7499f62a400"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "663b867a23b04deaa88c2ebd79bcdbc7"
},
"m_SlotId": 0
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Lighting/Components",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "7b2d256e77e9499fa065a26301d0eedf"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "15e990fffe9643ddb530bedd6ca2bc67",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "30a208011ad145b9afc6abc6f3f03dc1",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "f5238825c9d84359ad3fa6be3ecc80d9"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "580f49f845dd46bfa523ecb25b9a77d1",
"m_Id": 1,
"m_DisplayName": "SpecPower",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "SpecPower",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.AddNode",
"m_ObjectId": "663b867a23b04deaa88c2ebd79bcdbc7",
"m_Group": {
"m_Id": ""
},
"m_Name": "Add",
"m_DrawState": {
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -267.5,
"y": 0.0,
"width": 126.0,
"height": 94.00003051757813
}
},
"m_Slots": [
{
"m_Id": "f1679f38cc87497e83ba161977a94d91"
},
{
"m_Id": "e57b4aebb1fb4529a21b604e14d132d9"
},
{
"m_Id": "15e990fffe9643ddb530bedd6ca2bc67"
}
],
"synonyms": [
"addition",
"sum",
"plus"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "69533da906b947478e34ba82d736384f",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"e00": 10.0,
"e01": 2.0,
"e02": 2.0,
"e03": 2.0,
"e10": 2.0,
"e11": 2.0,
"e12": 2.0,
"e13": 2.0,
"e20": 2.0,
"e21": 2.0,
"e22": 2.0,
"e23": 2.0,
"e30": 2.0,
"e31": 2.0,
"e32": 2.0,
"e33": 2.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "7b2d256e77e9499fa065a26301d0eedf",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "580f49f845dd46bfa523ecb25b9a77d1"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "80f639c6927445458cce37e8c24909a1",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -530.6666870117188,
"y": 42.66668701171875,
"width": 141.33331298828126,
"height": 36.0
}
},
"m_Slots": [
{
"m_Id": "b2c4270056bb431383abb5b321c363f5"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "f5238825c9d84359ad3fa6be3ecc80d9"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "9494827fd5d64f2c9154d1de9d85ab4a",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "b2c4270056bb431383abb5b321c363f5",
"m_Id": 0,
"m_DisplayName": "Smoothness",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ExponentialNode",
"m_ObjectId": "bd8d33b85b2e46508bef0c6cc36f9dae",
"m_Group": {
"m_Id": ""
},
"m_Name": "Exponential",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -145.0,
"y": 0.0,
"width": 145.0,
"height": 128.50003051757813
}
},
"m_Slots": [
{
"m_Id": "9494827fd5d64f2c9154d1de9d85ab4a"
},
{
"m_Id": "f36c6be8b8084035a129c13dfd7eabc5"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_ExponentialBase": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "c7877562cdf0453ca9511be499b6e5d6",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
"m_ObjectId": "c7e9a2c01b804964a64dd7499f62a400",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -389.5,
"y": 0.0,
"width": 126.0,
"height": 118.00003051757813
}
},
"m_Slots": [
{
"m_Id": "d90ffed8b79f4a1cb78c46a3f27f16e9"
},
{
"m_Id": "69533da906b947478e34ba82d736384f"
},
{
"m_Id": "c7877562cdf0453ca9511be499b6e5d6"
}
],
"synonyms": [
"multiplication",
"times",
"x"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "d90ffed8b79f4a1cb78c46a3f27f16e9",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "e57b4aebb1fb4529a21b604e14d132d9",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "f1679f38cc87497e83ba161977a94d91",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "f36c6be8b8084035a129c13dfd7eabc5",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "f5238825c9d84359ad3fa6be3ecc80d9",
"m_Guid": {
"m_GuidSerialized": "41d8efe8-5e04-4978-b23b-d8ee43cb06d8"
},
"m_Name": "Smoothness",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Smoothness",
"m_DefaultReferenceName": "_Smoothness",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: acd07cd8756c57f4cb2dfbed1d358845
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 455ab73098441ca45af014387905e9e5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 62b0e9110002be846ae3d30dcb605106
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: d1632dc21cdead7468a0798d08070870
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: ab7fe674f7b57b142822233d6523289e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 859703545fa856042ac67813ceb35a75
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: b5f627370f568984bb4be446b9f54d15
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: c393739019089d344aaf4a9296daff16
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 851cb1082993f7f41a05d7850800b803
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: caf15de902c81de4f8eec0d0af78c657
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 836ccbead8eba604dae19317e6fd4f6f
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
@@ -0,0 +1,31 @@
fileFormatVersion: 2
guid: 6e28cb714c0d2b344b6be40f5a7ea819
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
useAsTemplate: 1
exposeTemplateAsShader: 0
template:
name: Custom Lighting Basic
category: URP Custom Lighting
description: "A basic custom lighting shader that calculates diffuse lighing
for multiple light sources. In order to reduce the cost of calculations, this
shader does not support fog, specular, reflections, light cookies, or SSAO,
but any of these could be added back in if needed. The goal with this one is
to make the lighting as cheap as possible by leaving out everything but the
basics. This type of lighting model may be ideal for XR or low-end mobile devices
where performance is critical.\r\n\r\n\r\n<b>Custom Lighting shaders:</b>\r\n\u2022
allow you to edit the lighting model itself directly in the graph to either
stylize it or make it cheaper.\r\n\u2022 are intended for use in Forward, or
Forward+ rendering modes. They are not intended to be used in Deferred mode.\r\n\u2022
can be mixed and matched in your scene, so you might use cheaper lighting models
on background elements and less important objects to reduce rendering cost,
and more complex lighting models on foreground elements and hero objects.\r\n\r\n\r\nSupported
Pipeline(s): URP\r\nActive Target: Unit\r\nVFX Graph Support: disabled"
icon: {instanceID: 0}
thumbnail: {fileID: 2800000, guid: 9c728d3022a43f347a658ed4a53c7a08, type: 3}
@@ -0,0 +1,28 @@
fileFormatVersion: 2
guid: fbf7e781079821f4a8f49681b42544d3
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
useAsTemplate: 1
exposeTemplateAsShader: 0
template:
name: Custom Lighting Simple
category: URP Custom Lighting
description: "This custom lighting model is designed to be similar to the main
lighting used by URP - but it uses a slightly cheaper Blinn model for specular
highlights. Blinn doesn't look quite as nice, but it should be faster to render
in most cases.\r\n\r\n<b>Custom Lighting shaders:</b>\r\n\u2022 allow you to
edit the lighting model itself directly in the graph to either stylize it or
make it cheaper.\r\n\u2022 are intended for use in Forward, or Forward+ rendering
modes. They are not intended to be used in Deferred mode.\r\n\u2022 can be
mixed and matched in your scene, so you might use cheaper lighting models on
background elements and less important objects to reduce rendering cost, and
more complex lighting models on foreground elements and hero objects.\r\n\r\n\r\nSupported
Pipeline(s): URP\r\nActive Target: Unit\r\nVFX Graph Support: disabled"
icon: {instanceID: 0}
thumbnail: {fileID: 2800000, guid: 2d952011e550495499bea1c8a52296e4, type: 3}
@@ -0,0 +1,28 @@
fileFormatVersion: 2
guid: 72d2b8d6d073079499ad114ad2dd4e92
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
useAsTemplate: 1
exposeTemplateAsShader: 0
template:
name: Custom Lighting Toon
category: URP Custom Lighting
description: "This custom lighting model posterizes the lighting so that it has
the appearance of a cartoon. This is a good example of how lighting can be
altered in the graph to achieve stylized effects that give your project a unique
appearance.\r\n\r\n<b>Custom Lighting shaders:</b>\r\n\u2022 allow you to edit
the lighting model itself directly in the graph to either stylize it or make
it cheaper.\r\n\u2022 are intended for use in Forward, or Forward+ rendering
modes. They are not intended to be used in Deferred mode.\r\n\u2022 can be
mixed and matched in your scene, so you might use cheaper lighting models on
background elements and less important objects to reduce rendering cost, and
more complex lighting models on foreground elements and hero objects.\r\n\r\n\r\nSupported
Pipeline(s): URP\r\nActive Target: Unit\r\nVFX Graph Support: disabled"
icon: {instanceID: 0}
thumbnail: {fileID: 2800000, guid: a90e1a518b6e15645a204fd30ed018de, type: 3}

Some files were not shown because too many files have changed in this diff Show More