UnityGame/Library/PackageCache/com.unity.shadergraph/Samples~/Common/Subgraphs/SampleReflectionProbes.shadersubgraph
2024-10-27 10:53:47 +03:00

823 lines
19 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "db0201d273ce45928be6a6e9ebfd68b3",
"m_Properties": [
{
"m_Id": "d6701bdc1f184a57ac2283491fc460d9"
},
{
"m_Id": "fcc3427d43f24b73abb69e0704ad165d"
},
{
"m_Id": "3e2eb19b69b8469eaf2302c7abc4cbc5"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "3673028e01264aaabbb10d53dcfbbf2e"
}
],
"m_Nodes": [
{
"m_Id": "fd35d1df2a3c43d097629f277d6a7dfd"
},
{
"m_Id": "b993dfa9c8bb4e4ea4f3cb1768e92822"
},
{
"m_Id": "9012e47da801473d8ef85a4092281eb2"
},
{
"m_Id": "b2508f25afb44017ba3480edc35cf631"
},
{
"m_Id": "7233d098cd214f55baf898d486bfdf4b"
},
{
"m_Id": "270e438746a9466e8aaf01f4903f62fb"
},
{
"m_Id": "27869743c4c14e898d5c15f6fdd4e044"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "ec2873777e7a44b18ece96cc5ea27ccc"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "270e438746a9466e8aaf01f4903f62fb"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7233d098cd214f55baf898d486bfdf4b"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "27869743c4c14e898d5c15f6fdd4e044"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7233d098cd214f55baf898d486bfdf4b"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7233d098cd214f55baf898d486bfdf4b"
},
"m_SlotId": 4
},
"m_InputSlot": {
"m_Node": {
"m_Id": "fd35d1df2a3c43d097629f277d6a7dfd"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "9012e47da801473d8ef85a4092281eb2"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b2508f25afb44017ba3480edc35cf631"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b2508f25afb44017ba3480edc35cf631"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7233d098cd214f55baf898d486bfdf4b"
},
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b993dfa9c8bb4e4ea4f3cb1768e92822"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7233d098cd214f55baf898d486bfdf4b"
},
"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": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "fd35d1df2a3c43d097629f277d6a7dfd"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "0ffba51867ca4078a0cb3ada9d52c270",
"m_Id": 4,
"m_DisplayName": "reflection",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "reflection",
"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": "1ace95eeb33e4696bac695ce534bac24",
"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.Vector3MaterialSlot",
"m_ObjectId": "241fc27207e54c23a33e418210be57a2",
"m_Id": 1,
"m_DisplayName": "reflectVector",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "reflectVector",
"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.ScreenPositionNode",
"m_ObjectId": "270e438746a9466e8aaf01f4903f62fb",
"m_Group": {
"m_Id": ""
},
"m_Name": "Screen Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -583.9999389648438,
"y": 56.0,
"width": 145.0,
"height": 128.9999542236328
}
},
"m_Slots": [
{
"m_Id": "f196b8e373244351bdfac56944738143"
}
],
"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.PropertyNode",
"m_ObjectId": "27869743c4c14e898d5c15f6fdd4e044",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -583.9999389648438,
"y": 6.000000476837158,
"width": 145.0,
"height": 33.999996185302737
}
},
"m_Slots": [
{
"m_Id": "689323ab7c1944f0ad863e83af5f9796"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "3e2eb19b69b8469eaf2302c7abc4cbc5"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "3673028e01264aaabbb10d53dcfbbf2e",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "d6701bdc1f184a57ac2283491fc460d9"
},
{
"m_Id": "3e2eb19b69b8469eaf2302c7abc4cbc5"
},
{
"m_Id": "fcc3427d43f24b73abb69e0704ad165d"
}
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "3e2eb19b69b8469eaf2302c7abc4cbc5",
"m_Guid": {
"m_GuidSerialized": "0d9a3753-41c5-44bc-955b-3940057d15cc"
},
"m_Name": "reflectVector",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "reflectVector",
"m_DefaultReferenceName": "_reflectVector",
"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.Vector3MaterialSlot",
"m_ObjectId": "58ac1232f2604e5cb8fc7305fd7b0c7e",
"m_Id": 0,
"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_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "689323ab7c1944f0ad863e83af5f9796",
"m_Id": 0,
"m_DisplayName": "reflectVector",
"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.CustomFunctionNode",
"m_ObjectId": "7233d098cd214f55baf898d486bfdf4b",
"m_Group": {
"m_Id": ""
},
"m_Name": "URPReflectionProbe (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -373.99993896484377,
"y": -40.00001907348633,
"width": 141.99998474121095,
"height": 166.0
}
},
"m_Slots": [
{
"m_Id": "58ac1232f2604e5cb8fc7305fd7b0c7e"
},
{
"m_Id": "241fc27207e54c23a33e418210be57a2"
},
{
"m_Id": "d8d6aca107924582a8d526d2b0ca12c5"
},
{
"m_Id": "e2ec82b337424b30906edb0101ba88c2"
},
{
"m_Id": "0ffba51867ca4078a0cb3ada9d52c270"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "URPReflectionProbe",
"m_FunctionSource": "5983a35c690aab54eaba2ae8eb99a119",
"m_FunctionBody": "#ifdef SHADERGRAPH_PREVIEW\n reflection = float3(0,0,0);\n#else\n reflection = GlossyEnvironmentReflection(reflectVector, positionWS, roughness, 1.0h, screenspaceUV);\n#endif"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "73aadca0f628498e912b75f2d4cf8ace",
"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": "7c7074bf4a9c48adb1194c9d4fc8f892",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"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.PropertyNode",
"m_ObjectId": "9012e47da801473d8ef85a4092281eb2",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -713.9998779296875,
"y": 225.99996948242188,
"width": 138.99993896484376,
"height": 33.999969482421878
}
},
"m_Slots": [
{
"m_Id": "1ace95eeb33e4696bac695ce534bac24"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "fcc3427d43f24b73abb69e0704ad165d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "a472bed98526454c94f83a85a1af3183",
"m_Id": 0,
"m_DisplayName": "positionWS",
"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": "a6e3df1af8a94a338578199939cec1bb",
"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.OneMinusNode",
"m_ObjectId": "b2508f25afb44017ba3480edc35cf631",
"m_Group": {
"m_Id": ""
},
"m_Name": "One Minus",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -566.9998779296875,
"y": 184.9999542236328,
"width": 127.99993896484375,
"height": 93.99998474121094
}
},
"m_Slots": [
{
"m_Id": "7c7074bf4a9c48adb1194c9d4fc8f892"
},
{
"m_Id": "a6e3df1af8a94a338578199939cec1bb"
}
],
"synonyms": [
"complement",
"invert",
"opposite"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "b993dfa9c8bb4e4ea4f3cb1768e92822",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -574.9999389648438,
"y": -95.99998474121094,
"width": 136.0,
"height": 33.999996185302737
}
},
"m_Slots": [
{
"m_Id": "a472bed98526454c94f83a85a1af3183"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "d6701bdc1f184a57ac2283491fc460d9"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "d6701bdc1f184a57ac2283491fc460d9",
"m_Guid": {
"m_GuidSerialized": "77bddcc2-c639-4dd7-97a9-d63b0749f8eb"
},
"m_Name": "positionWS",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "positionWS",
"m_DefaultReferenceName": "_positionWS",
"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.Vector3MaterialSlot",
"m_ObjectId": "d8d6aca107924582a8d526d2b0ca12c5",
"m_Id": 2,
"m_DisplayName": "screenspaceUV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "screenspaceUV",
"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": "e2ec82b337424b30906edb0101ba88c2",
"m_Id": 3,
"m_DisplayName": "roughness",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "roughness",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
"m_ObjectId": "ec2873777e7a44b18ece96cc5ea27ccc",
"m_Title": "",
"m_Content": "We use this Custom Function node because we need to be able to call the URP-specific function called \"GlossyEnvironmentReflection.\"",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": -360.0,
"y": -120.0,
"width": 227.0,
"height": 100.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "f196b8e373244351bdfac56944738143",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "fcc3427d43f24b73abb69e0704ad165d",
"m_Guid": {
"m_GuidSerialized": "606da06e-54ee-4eef-a2f6-317aa9295743"
},
"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
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "fd35d1df2a3c43d097629f277d6a7dfd",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -85.99998474121094,
"y": -37.0000114440918,
"width": 86.00003051757813,
"height": 77.00000762939453
}
},
"m_Slots": [
{
"m_Id": "73aadca0f628498e912b75f2d4cf8ace"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}