mirror of
				https://github.com/maxartz15/VertexAnimation.git
				synced 2025-11-04 10:25:44 +01:00 
			
		
		
		
	WIP custom vector encoding.
Co-Authored-By: Neeto-rzo <68438932+Neeto-rzo@users.noreply.github.com>
This commit is contained in:
		@@ -52,6 +52,34 @@ void Decode2Float1ToFloat3_float(float f1, out float3 f3)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Custom
 | 
			
		||||
// Encode float3 to 0..1 float.
 | 
			
		||||
void Float3ToFloat2_float(float3 f3, out float2 f2)
 | 
			
		||||
{
 | 
			
		||||
	//float3 rotation = normalize(float3(f3.x, 0, f3.y));
 | 
			
		||||
	float3 rotation = normalize(float3(f3.x, 0, f3.z));
 | 
			
		||||
 | 
			
		||||
    f2.x = acos (dot(rotation, float3(1, 0, 0))) * sign(f3.z);
 | 
			
		||||
    f2.x = ((f2.x / V_PI) + 1) * 0.5f;
 | 
			
		||||
    
 | 
			
		||||
    f2.y =  acos(f3.y) / V_PI;
 | 
			
		||||
 | 
			
		||||
	f2 *= 15;
 | 
			
		||||
	f2.x = round(f2.x);
 | 
			
		||||
	f2.y = round(f2.y);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Float2ToFloat_float(float2 f2, out float f1)
 | 
			
		||||
{
 | 
			
		||||
	f1 = (f2.x + (16 * f2.y)) / 255;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Float3ToFloat_float(float3 f3, out float f1)
 | 
			
		||||
{
 | 
			
		||||
	float2 f2;
 | 
			
		||||
	Float3ToFloat2_float(f3, f2);
 | 
			
		||||
	Float2ToFloat_float(f2, f1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Decode 0..1 float.
 | 
			
		||||
void FloatToFloat2_float(float f1, out float2 f2)
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -45,7 +45,7 @@
 | 
			
		||||
        {
 | 
			
		||||
            "m_OutputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "5c342c9c5ab943a6ab1d9499425f19e0"
 | 
			
		||||
                    "m_Id": "95caa98ec1fe4b12be341a504a26521c"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 1
 | 
			
		||||
            },
 | 
			
		||||
@@ -113,6 +113,34 @@
 | 
			
		||||
    "m_ActiveTargets": []
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "0cba0cf553074658b7a3602d4d7e647a",
 | 
			
		||||
    "m_Id": 1,
 | 
			
		||||
    "m_DisplayName": "Vector3",
 | 
			
		||||
    "m_SlotType": 0,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "Vector3",
 | 
			
		||||
    "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": [
 | 
			
		||||
        "X",
 | 
			
		||||
        "Y",
 | 
			
		||||
        "Z"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
 | 
			
		||||
@@ -171,8 +199,8 @@
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": -81.0,
 | 
			
		||||
            "y": 325.0,
 | 
			
		||||
            "x": -77.0,
 | 
			
		||||
            "y": 288.0,
 | 
			
		||||
            "width": 208.0,
 | 
			
		||||
            "height": 278.0
 | 
			
		||||
        }
 | 
			
		||||
@@ -226,8 +254,8 @@
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": 157.0,
 | 
			
		||||
            "y": 325.0,
 | 
			
		||||
            "x": 154.0,
 | 
			
		||||
            "y": 288.0,
 | 
			
		||||
            "width": 208.0,
 | 
			
		||||
            "height": 278.0
 | 
			
		||||
        }
 | 
			
		||||
@@ -358,7 +386,7 @@
 | 
			
		||||
    },
 | 
			
		||||
    "m_Slots": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "b220757e741547ccaa7b90e39ecc4acb"
 | 
			
		||||
            "m_Id": "0cba0cf553074658b7a3602d4d7e647a"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_Precision": 0,
 | 
			
		||||
@@ -381,7 +409,7 @@
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": -219.0,
 | 
			
		||||
            "x": -207.0,
 | 
			
		||||
            "y": 43.0,
 | 
			
		||||
            "width": 115.0,
 | 
			
		||||
            "height": 34.0
 | 
			
		||||
@@ -402,34 +430,6 @@
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "b220757e741547ccaa7b90e39ecc4acb",
 | 
			
		||||
    "m_Id": 1,
 | 
			
		||||
    "m_DisplayName": "Out_Vector3",
 | 
			
		||||
    "m_SlotType": 0,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "OutVector3",
 | 
			
		||||
    "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": [
 | 
			
		||||
        "X",
 | 
			
		||||
        "Y",
 | 
			
		||||
        "Z"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,500 @@
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 2,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.GraphData",
 | 
			
		||||
    "m_ObjectId": "a0a2fdc9c1a4498195631e1da43ae9d8",
 | 
			
		||||
    "m_Properties": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "649381b2fbd64c65a3573245a307b86b"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_Keywords": [],
 | 
			
		||||
    "m_Nodes": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "966c13a2f0a94a189243c9f0d9524146"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "95caa98ec1fe4b12be341a504a26521c"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "263e3f691adc4e89ae69574634db2de6"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "5c342c9c5ab943a6ab1d9499425f19e0"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "6183ac8f11154a879a7de4bfc8588508"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_GroupDatas": [],
 | 
			
		||||
    "m_StickyNoteDatas": [],
 | 
			
		||||
    "m_Edges": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_OutputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "5c342c9c5ab943a6ab1d9499425f19e0"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 1
 | 
			
		||||
            },
 | 
			
		||||
            "m_InputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "263e3f691adc4e89ae69574634db2de6"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 0
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_OutputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "6183ac8f11154a879a7de4bfc8588508"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 0
 | 
			
		||||
            },
 | 
			
		||||
            "m_InputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "5c342c9c5ab943a6ab1d9499425f19e0"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 0
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_OutputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "6183ac8f11154a879a7de4bfc8588508"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 0
 | 
			
		||||
            },
 | 
			
		||||
            "m_InputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "95caa98ec1fe4b12be341a504a26521c"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 0
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_OutputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "95caa98ec1fe4b12be341a504a26521c"
 | 
			
		||||
                },
 | 
			
		||||
                "m_SlotId": 1
 | 
			
		||||
            },
 | 
			
		||||
            "m_InputSlot": {
 | 
			
		||||
                "m_Node": {
 | 
			
		||||
                    "m_Id": "966c13a2f0a94a189243c9f0d9524146"
 | 
			
		||||
                },
 | 
			
		||||
                "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": ""
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "m_Path": "Sub Graphs",
 | 
			
		||||
    "m_ConcretePrecision": 0,
 | 
			
		||||
    "m_OutputNode": {
 | 
			
		||||
        "m_Id": "966c13a2f0a94a189243c9f0d9524146"
 | 
			
		||||
    },
 | 
			
		||||
    "m_ActiveTargets": []
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
 | 
			
		||||
    "m_ObjectId": "263e3f691adc4e89ae69574634db2de6",
 | 
			
		||||
    "m_Group": {
 | 
			
		||||
        "m_Id": ""
 | 
			
		||||
    },
 | 
			
		||||
    "m_Name": "Custom Function",
 | 
			
		||||
    "m_DrawState": {
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": 159.0,
 | 
			
		||||
            "y": 284.0,
 | 
			
		||||
            "width": 208.0,
 | 
			
		||||
            "height": 278.0
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "m_Slots": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "492c77b84ba1476d91daa6e8ce7aa61f"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "38ea28ce1d2946939f8da8a5a13dc271"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_Precision": 0,
 | 
			
		||||
    "m_PreviewExpanded": true,
 | 
			
		||||
    "m_CustomColors": {
 | 
			
		||||
        "m_SerializableColors": []
 | 
			
		||||
    },
 | 
			
		||||
    "m_SourceType": 0,
 | 
			
		||||
    "m_FunctionName": "Float2ToFloat",
 | 
			
		||||
    "m_FunctionSource": "02eb5540183369645883b2c6b33144dc",
 | 
			
		||||
    "m_FunctionBody": "Enter function body here..."
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "38ea28ce1d2946939f8da8a5a13dc271",
 | 
			
		||||
    "m_Id": 0,
 | 
			
		||||
    "m_DisplayName": "f2",
 | 
			
		||||
    "m_SlotType": 0,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "f2",
 | 
			
		||||
    "m_StageCapability": 3,
 | 
			
		||||
    "m_Value": {
 | 
			
		||||
        "x": 0.0,
 | 
			
		||||
        "y": 0.0
 | 
			
		||||
    },
 | 
			
		||||
    "m_DefaultValue": {
 | 
			
		||||
        "x": 0.0,
 | 
			
		||||
        "y": 0.0
 | 
			
		||||
    },
 | 
			
		||||
    "m_Labels": [
 | 
			
		||||
        "X",
 | 
			
		||||
        "Y"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "3a65985af2a3458999edd07eb7e7f94a",
 | 
			
		||||
    "m_Id": 1,
 | 
			
		||||
    "m_DisplayName": "Vector1",
 | 
			
		||||
    "m_SlotType": 0,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "Vector1",
 | 
			
		||||
    "m_StageCapability": 3,
 | 
			
		||||
    "m_Value": 0.0,
 | 
			
		||||
    "m_DefaultValue": 0.0,
 | 
			
		||||
    "m_Labels": [
 | 
			
		||||
        "X"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "3c2ce541348040bc84f367711eef6b0b",
 | 
			
		||||
    "m_Id": 0,
 | 
			
		||||
    "m_DisplayName": "f3",
 | 
			
		||||
    "m_SlotType": 0,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "f3",
 | 
			
		||||
    "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": [
 | 
			
		||||
        "X",
 | 
			
		||||
        "Y",
 | 
			
		||||
        "Z"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "492c77b84ba1476d91daa6e8ce7aa61f",
 | 
			
		||||
    "m_Id": 1,
 | 
			
		||||
    "m_DisplayName": "f1",
 | 
			
		||||
    "m_SlotType": 1,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "f1",
 | 
			
		||||
    "m_StageCapability": 3,
 | 
			
		||||
    "m_Value": 0.0,
 | 
			
		||||
    "m_DefaultValue": 0.0,
 | 
			
		||||
    "m_Labels": [
 | 
			
		||||
        "X"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "59ce4677cbdc4d0ca5ebb874d5973974",
 | 
			
		||||
    "m_Id": 1,
 | 
			
		||||
    "m_DisplayName": "f1",
 | 
			
		||||
    "m_SlotType": 1,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "f1",
 | 
			
		||||
    "m_StageCapability": 3,
 | 
			
		||||
    "m_Value": 0.0,
 | 
			
		||||
    "m_DefaultValue": 0.0,
 | 
			
		||||
    "m_Labels": [
 | 
			
		||||
        "X"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
 | 
			
		||||
    "m_ObjectId": "5c342c9c5ab943a6ab1d9499425f19e0",
 | 
			
		||||
    "m_Group": {
 | 
			
		||||
        "m_Id": ""
 | 
			
		||||
    },
 | 
			
		||||
    "m_Name": "Custom Function",
 | 
			
		||||
    "m_DrawState": {
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": -75.0,
 | 
			
		||||
            "y": 284.0,
 | 
			
		||||
            "width": 208.0,
 | 
			
		||||
            "height": 278.0
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "m_Slots": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "9da8d016e02c4286951fc5db1131764e"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "6083c1c5cfdb43a2b860d11819e18fee"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_Precision": 0,
 | 
			
		||||
    "m_PreviewExpanded": true,
 | 
			
		||||
    "m_CustomColors": {
 | 
			
		||||
        "m_SerializableColors": []
 | 
			
		||||
    },
 | 
			
		||||
    "m_SourceType": 0,
 | 
			
		||||
    "m_FunctionName": "Float3ToFloat2",
 | 
			
		||||
    "m_FunctionSource": "02eb5540183369645883b2c6b33144dc",
 | 
			
		||||
    "m_FunctionBody": "Enter function body here..."
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "6083c1c5cfdb43a2b860d11819e18fee",
 | 
			
		||||
    "m_Id": 0,
 | 
			
		||||
    "m_DisplayName": "f3",
 | 
			
		||||
    "m_SlotType": 0,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "f3",
 | 
			
		||||
    "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": [
 | 
			
		||||
        "X",
 | 
			
		||||
        "Y",
 | 
			
		||||
        "Z"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.PropertyNode",
 | 
			
		||||
    "m_ObjectId": "6183ac8f11154a879a7de4bfc8588508",
 | 
			
		||||
    "m_Group": {
 | 
			
		||||
        "m_Id": ""
 | 
			
		||||
    },
 | 
			
		||||
    "m_Name": "Property",
 | 
			
		||||
    "m_DrawState": {
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": -209.0,
 | 
			
		||||
            "y": 43.0,
 | 
			
		||||
            "width": 119.0,
 | 
			
		||||
            "height": 34.0
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "m_Slots": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "7b566bab9e1642b086248d23e428a2db"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_Precision": 0,
 | 
			
		||||
    "m_PreviewExpanded": true,
 | 
			
		||||
    "m_CustomColors": {
 | 
			
		||||
        "m_SerializableColors": []
 | 
			
		||||
    },
 | 
			
		||||
    "m_Property": {
 | 
			
		||||
        "m_Id": "649381b2fbd64c65a3573245a307b86b"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
 | 
			
		||||
    "m_ObjectId": "649381b2fbd64c65a3573245a307b86b",
 | 
			
		||||
    "m_Guid": {
 | 
			
		||||
        "m_GuidSerialized": "7fd8d4b6-495e-4d11-8cef-b7ae110914a7"
 | 
			
		||||
    },
 | 
			
		||||
    "m_Name": "Vector3",
 | 
			
		||||
    "m_DefaultReferenceName": "Vector3_649381b2fbd64c65a3573245a307b86b",
 | 
			
		||||
    "m_OverrideReferenceName": "",
 | 
			
		||||
    "m_GeneratePropertyBlock": true,
 | 
			
		||||
    "m_Precision": 0,
 | 
			
		||||
    "m_GPUInstanced": false,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_Value": {
 | 
			
		||||
        "x": 0.5,
 | 
			
		||||
        "y": 0.5,
 | 
			
		||||
        "z": 0.5,
 | 
			
		||||
        "w": 0.0
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "7b566bab9e1642b086248d23e428a2db",
 | 
			
		||||
    "m_Id": 0,
 | 
			
		||||
    "m_DisplayName": "Vector3",
 | 
			
		||||
    "m_SlotType": 1,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "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": [
 | 
			
		||||
        "X",
 | 
			
		||||
        "Y",
 | 
			
		||||
        "Z"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
 | 
			
		||||
    "m_ObjectId": "95caa98ec1fe4b12be341a504a26521c",
 | 
			
		||||
    "m_Group": {
 | 
			
		||||
        "m_Id": ""
 | 
			
		||||
    },
 | 
			
		||||
    "m_Name": "Custom Function",
 | 
			
		||||
    "m_DrawState": {
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": -75.0,
 | 
			
		||||
            "y": 3.0,
 | 
			
		||||
            "width": 208.0,
 | 
			
		||||
            "height": 278.0
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "m_Slots": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "59ce4677cbdc4d0ca5ebb874d5973974"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "3c2ce541348040bc84f367711eef6b0b"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_Precision": 0,
 | 
			
		||||
    "m_PreviewExpanded": true,
 | 
			
		||||
    "m_CustomColors": {
 | 
			
		||||
        "m_SerializableColors": []
 | 
			
		||||
    },
 | 
			
		||||
    "m_SourceType": 0,
 | 
			
		||||
    "m_FunctionName": "Float3ToFloat",
 | 
			
		||||
    "m_FunctionSource": "02eb5540183369645883b2c6b33144dc",
 | 
			
		||||
    "m_FunctionBody": "Enter function body here..."
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
 | 
			
		||||
    "m_ObjectId": "966c13a2f0a94a189243c9f0d9524146",
 | 
			
		||||
    "m_Group": {
 | 
			
		||||
        "m_Id": ""
 | 
			
		||||
    },
 | 
			
		||||
    "m_Name": "Output",
 | 
			
		||||
    "m_DrawState": {
 | 
			
		||||
        "m_Expanded": true,
 | 
			
		||||
        "m_Position": {
 | 
			
		||||
            "serializedVersion": "2",
 | 
			
		||||
            "x": 536.0,
 | 
			
		||||
            "y": 3.9999988079071047,
 | 
			
		||||
            "width": 120.00000762939453,
 | 
			
		||||
            "height": 77.00000762939453
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "m_Slots": [
 | 
			
		||||
        {
 | 
			
		||||
            "m_Id": "3a65985af2a3458999edd07eb7e7f94a"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "m_Precision": 0,
 | 
			
		||||
    "m_PreviewExpanded": true,
 | 
			
		||||
    "m_CustomColors": {
 | 
			
		||||
        "m_SerializableColors": []
 | 
			
		||||
    },
 | 
			
		||||
    "IsFirstSlotValid": true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
    "m_SGVersion": 0,
 | 
			
		||||
    "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
 | 
			
		||||
    "m_ObjectId": "9da8d016e02c4286951fc5db1131764e",
 | 
			
		||||
    "m_Id": 1,
 | 
			
		||||
    "m_DisplayName": "f2",
 | 
			
		||||
    "m_SlotType": 1,
 | 
			
		||||
    "m_Priority": 2147483647,
 | 
			
		||||
    "m_Hidden": false,
 | 
			
		||||
    "m_ShaderOutputName": "f2",
 | 
			
		||||
    "m_StageCapability": 3,
 | 
			
		||||
    "m_Value": {
 | 
			
		||||
        "x": 0.0,
 | 
			
		||||
        "y": 0.0
 | 
			
		||||
    },
 | 
			
		||||
    "m_DefaultValue": {
 | 
			
		||||
        "x": 0.0,
 | 
			
		||||
        "y": 0.0
 | 
			
		||||
    },
 | 
			
		||||
    "m_Labels": [
 | 
			
		||||
        "X",
 | 
			
		||||
        "Y"
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -0,0 +1,10 @@
 | 
			
		||||
fileFormatVersion: 2
 | 
			
		||||
guid: 7fd72c46eb886a64ab5f345bbaa925ca
 | 
			
		||||
ScriptedImporter:
 | 
			
		||||
  internalIDToNameTable: []
 | 
			
		||||
  externalObjects: {}
 | 
			
		||||
  serializedVersion: 2
 | 
			
		||||
  userData: 
 | 
			
		||||
  assetBundleName: 
 | 
			
		||||
  assetBundleVariant: 
 | 
			
		||||
  script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
 | 
			
		||||
		Reference in New Issue
	
	Block a user