UnityGame/Library/PackageCache/com.unity.shadergraph/ShaderGraphLibrary/Nature/SpeedTree9CameraFacingLeafEffect.shadersubgraph
2024-10-27 10:53:47 +03:00

811 lines
19 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "755a93254141488399087b3308ad36ef",
"m_Properties": [
{
"m_Id": "8ab10da2124da78dbf0ae0289b56de8b"
},
{
"m_Id": "e5ff779cf6e24d76bcf888e4273eca23"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "47713774a4eb4299ba8b2a71387db83b"
}
],
"m_Nodes": [
{
"m_Id": "515415114022d483bfcdfd550d1665da"
},
{
"m_Id": "c43251a50a5947879de8aba4500e9614"
},
{
"m_Id": "fe2a3c68665e44c1a68cb56972054411"
},
{
"m_Id": "dd2f62e9497e449783da8a10acb800f0"
},
{
"m_Id": "b3fadcf6ec584e5facf413fb91de479b"
},
{
"m_Id": "055ab909694b4e8bbe0b2cfd584a4fd0"
},
{
"m_Id": "c5401ca55ff7479a943cd8e195cce606"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "055ab909694b4e8bbe0b2cfd584a4fd0"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c5401ca55ff7479a943cd8e195cce606"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b3fadcf6ec584e5facf413fb91de479b"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c5401ca55ff7479a943cd8e195cce606"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b3fadcf6ec584e5facf413fb91de479b"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "dd2f62e9497e449783da8a10acb800f0"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c43251a50a5947879de8aba4500e9614"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "dd2f62e9497e449783da8a10acb800f0"
},
"m_SlotId": 5
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c5401ca55ff7479a943cd8e195cce606"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "515415114022d483bfcdfd550d1665da"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "dd2f62e9497e449783da8a10acb800f0"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c5401ca55ff7479a943cd8e195cce606"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fe2a3c68665e44c1a68cb56972054411"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "dd2f62e9497e449783da8a10acb800f0"
},
"m_SlotId": 4
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 1894.0,
"y": -349.5000305175781
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 1894.0,
"y": -149.50003051757813
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "SpeedTree",
"m_GraphPrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "515415114022d483bfcdfd550d1665da"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "055ab909694b4e8bbe0b2cfd584a4fd0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 943.2000122070313,
"y": -1398.4000244140625,
"width": 131.99993896484376,
"height": 33.5999755859375
}
},
"m_Slots": [
{
"m_Id": "25fe22afbafd40eb923c8bd7da0590e4"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "e5ff779cf6e24d76bcf888e4273eca23"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "25fe22afbafd40eb923c8bd7da0590e4",
"m_Id": 0,
"m_DisplayName": "IsBillboard",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "33c7d1f937f84de88dab6b78171ea330",
"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.CategoryData",
"m_ObjectId": "47713774a4eb4299ba8b2a71387db83b",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "8ab10da2124da78dbf0ae0289b56de8b"
},
{
"m_Id": "e5ff779cf6e24d76bcf888e4273eca23"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "515415114022d483bfcdfd550d1665da",
"m_Group": {
"m_Id": ""
},
"m_Name": "Out_Vector4",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 1373.5999755859375,
"y": -1305.5999755859375,
"width": 182.4000244140625,
"height": 100.7999267578125
}
},
"m_Slots": [
{
"m_Id": "f3a9bebf31974f7eb2e9efd993bab257"
}
],
"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.Vector4MaterialSlot",
"m_ObjectId": "84eab20a36c442c39d153322718082df",
"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.Vector3ShaderProperty",
"m_ObjectId": "8ab10da2124da78dbf0ae0289b56de8b",
"m_Guid": {
"m_GuidSerialized": "14cc25ba-b995-478e-9d66-13c304e58e96"
},
"m_Name": "ObjectSpacePosition",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector3_DF61F3B",
"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": "985f4d22277e4c848f1a4e8599825c1e",
"m_Id": 2,
"m_DisplayName": "False",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "False",
"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": "9865b2e64e2f4147967bb32a63ad7e47",
"m_Id": 1,
"m_DisplayName": "True",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "True",
"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.Vector4MaterialSlot",
"m_ObjectId": "99211ac232b942c7a446624cc6276ea0",
"m_Id": 5,
"m_DisplayName": "UV3",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV3",
"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.PropertyNode",
"m_ObjectId": "b3fadcf6ec584e5facf413fb91de479b",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 528.0,
"y": -1288.800048828125,
"width": 186.4000244140625,
"height": 33.60009765625
}
},
"m_Slots": [
{
"m_Id": "c8285dacdfe94e1a8ec6d81261661975"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "8ab10da2124da78dbf0ae0289b56de8b"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "b4d3ad6c92014bc4926e0dce5607559b",
"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.Vector4MaterialSlot",
"m_ObjectId": "bd0e784d2ccf46558fb47a1faf722661",
"m_Id": 4,
"m_DisplayName": "UV2",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV2",
"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.UVNode",
"m_ObjectId": "c43251a50a5947879de8aba4500e9614",
"m_Group": {
"m_Id": ""
},
"m_Name": "UV",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 543.9999389648438,
"y": -1100.0,
"width": 145.5999755859375,
"height": 127.2000732421875
}
},
"m_Slots": [
{
"m_Id": "33c7d1f937f84de88dab6b78171ea330"
}
],
"synonyms": [
"texcoords",
"coords",
"coordinates"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_OutputChannel": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BranchNode",
"m_ObjectId": "c5401ca55ff7479a943cd8e195cce606",
"m_Group": {
"m_Id": ""
},
"m_Name": "Branch",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 1100.0,
"y": -1350.4000244140625,
"width": 172.0,
"height": 141.5999755859375
}
},
"m_Slots": [
{
"m_Id": "f2bab7af64f74b16a0e2682158527c3e"
},
{
"m_Id": "9865b2e64e2f4147967bb32a63ad7e47"
},
{
"m_Id": "985f4d22277e4c848f1a4e8599825c1e"
},
{
"m_Id": "b4d3ad6c92014bc4926e0dce5607559b"
}
],
"synonyms": [
"switch",
"if",
"else"
],
"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": "c7ceaf04428e4c13802efd03d5ccecc8",
"m_Id": 0,
"m_DisplayName": "ObjectSpacePosition",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "ObjectSpacePosition",
"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": "c8285dacdfe94e1a8ec6d81261661975",
"m_Id": 0,
"m_DisplayName": "ObjectSpacePosition",
"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": "dd2f62e9497e449783da8a10acb800f0",
"m_Group": {
"m_Id": ""
},
"m_Name": "SpeedTree9LeafFacing (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 730.4000244140625,
"y": -1216.800048828125,
"width": 344.7999267578125,
"height": 165.5999755859375
}
},
"m_Slots": [
{
"m_Id": "c7ceaf04428e4c13802efd03d5ccecc8"
},
{
"m_Id": "bd0e784d2ccf46558fb47a1faf722661"
},
{
"m_Id": "99211ac232b942c7a446624cc6276ea0"
},
{
"m_Id": "fa8172d0491c4feaaeed417f19db78b6"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "SpeedTree9LeafFacing",
"m_FunctionSource": "33eafb83c6bce0842b6887eebaf95436",
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.BooleanShaderProperty",
"m_ObjectId": "e5ff779cf6e24d76bcf888e4273eca23",
"m_Guid": {
"m_GuidSerialized": "e666ebd7-9d99-4192-8bea-f431baeaedf5"
},
"m_Name": "IsBillboard",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "IsBillboard",
"m_DefaultReferenceName": "_IsBillboard",
"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": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
"m_ObjectId": "f2bab7af64f74b16a0e2682158527c3e",
"m_Id": 0,
"m_DisplayName": "Predicate",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Predicate",
"m_StageCapability": 3,
"m_Value": false,
"m_DefaultValue": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "f3a9bebf31974f7eb2e9efd993bab257",
"m_Id": 1,
"m_DisplayName": "ObjectSpacePositionOut",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "ObjectSpacePositionOut",
"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": "fa8172d0491c4feaaeed417f19db78b6",
"m_Id": 2,
"m_DisplayName": "LeafFacingVertexPosition",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "LeafFacingVertexPosition",
"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.UVNode",
"m_ObjectId": "fe2a3c68665e44c1a68cb56972054411",
"m_Group": {
"m_Id": ""
},
"m_Name": "UV",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 543.9999389648438,
"y": -1234.39990234375,
"width": 145.5999755859375,
"height": 127.2000732421875
}
},
"m_Slots": [
{
"m_Id": "84eab20a36c442c39d153322718082df"
}
],
"synonyms": [
"texcoords",
"coords",
"coordinates"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_OutputChannel": 2
}