mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-12-05 01:30:44 +01:00
Shader UV's
Support for both Houdini (Flipped) and normal UVs.
This commit is contained in:
parent
6c9a52c1a6
commit
322b50b2bd
@ -58,10 +58,10 @@ 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.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);
|
||||
|
@ -8,29 +8,18 @@
|
||||
float2 VA_UV_float(float2 uv, int maxFrames, float time)
|
||||
{
|
||||
float2 uvPosition;
|
||||
|
||||
float timeInFrames = frac(time);
|
||||
timeInFrames = ceil(timeInFrames * maxFrames);
|
||||
timeInFrames /= maxFrames;
|
||||
timeInFrames += round(1.0f / maxFrames);
|
||||
|
||||
uvPosition.x = uv.x;
|
||||
|
||||
#ifdef VA_FLIP_UVS_ON
|
||||
uvPosition.y = (1.0f - (timeInFrames)) + (1.0f - (1.0f - uv.y));
|
||||
|
||||
return uvPosition;
|
||||
}
|
||||
|
||||
float2 VA1_UV_float(float2 uv, int maxFrames, float time)
|
||||
{
|
||||
float2 uvPosition;
|
||||
|
||||
float timeInFrames = frac(time);
|
||||
timeInFrames = ceil(timeInFrames * maxFrames);
|
||||
timeInFrames /= maxFrames;
|
||||
timeInFrames += round(1.0f / maxFrames);
|
||||
|
||||
uvPosition.x = uv.x;
|
||||
#else
|
||||
uvPosition.y = (1.0f - (1.0f - uv.y) - (1.0f - (timeInFrames)));
|
||||
#endif
|
||||
|
||||
return uvPosition;
|
||||
}
|
||||
@ -49,20 +38,6 @@ void VA_float(float2 uv, SamplerState texSampler, Texture2D positionMap, float t
|
||||
alpha = texturePos.w;
|
||||
}
|
||||
|
||||
void VA1_float(float2 uv, SamplerState texSampler, Texture2D positionMap, float time, int maxFrames,
|
||||
out float3 position, out float alpha)
|
||||
{
|
||||
float2 uvPosition = VA1_UV_float(uv, maxFrames, time);
|
||||
|
||||
// Position.
|
||||
float4 texturePos = positionMap.SampleLevel(texSampler, uvPosition, 0);
|
||||
position = texturePos.xyz;
|
||||
|
||||
// Normal.
|
||||
//FloatToFloat3_float(texturePos.w, outNormal);
|
||||
alpha = texturePos.w;
|
||||
}
|
||||
|
||||
void VA_ARRAY_float(float2 uv, SamplerState texSampler, Texture2DArray positionMap, float positionMapIndex, float time, int maxFrames,
|
||||
out float3 position, out float3 alpha)
|
||||
{
|
||||
|
@ -1,799 +0,0 @@
|
||||
{
|
||||
"m_SGVersion": 2,
|
||||
"m_Type": "UnityEditor.ShaderGraph.GraphData",
|
||||
"m_ObjectId": "144dcb1a2d15470a91360080bc9bd989",
|
||||
"m_Properties": [
|
||||
{
|
||||
"m_Id": "3564f72314574212a0eed0f9581a6b85"
|
||||
},
|
||||
{
|
||||
"m_Id": "a09a6ce7e08545d99b5bda70586f4e79"
|
||||
},
|
||||
{
|
||||
"m_Id": "975a04061f8d4786bce18d1574108732"
|
||||
},
|
||||
{
|
||||
"m_Id": "f9b649ed28584dca8a522f3fb582f350"
|
||||
},
|
||||
{
|
||||
"m_Id": "967e0c2bcb6e48c2b85b82c6d4c734a4"
|
||||
}
|
||||
],
|
||||
"m_Keywords": [],
|
||||
"m_Nodes": [
|
||||
{
|
||||
"m_Id": "031d019a3f114a639fed0a731159883c"
|
||||
},
|
||||
{
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
{
|
||||
"m_Id": "46dfe2d873b3436a89d174ac3545bc00"
|
||||
},
|
||||
{
|
||||
"m_Id": "f39a0ab1ea5d4129b8c210c762bed693"
|
||||
},
|
||||
{
|
||||
"m_Id": "5c18cb5e2e0542c2ae766d7de7011cda"
|
||||
},
|
||||
{
|
||||
"m_Id": "431f7271c3544d459b5128258fd524ed"
|
||||
},
|
||||
{
|
||||
"m_Id": "bc36bc83631c44e0b48e951b444ba971"
|
||||
}
|
||||
],
|
||||
"m_GroupDatas": [],
|
||||
"m_StickyNoteDatas": [],
|
||||
"m_Edges": [
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "431f7271c3544d459b5128258fd524ed"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
"m_SlotId": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "46dfe2d873b3436a89d174ac3545bc00"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "5c18cb5e2e0542c2ae766d7de7011cda"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
"m_SlotId": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
"m_SlotId": 9
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "031d019a3f114a639fed0a731159883c"
|
||||
},
|
||||
"m_SlotId": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
"m_SlotId": 10
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "031d019a3f114a639fed0a731159883c"
|
||||
},
|
||||
"m_SlotId": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "bc36bc83631c44e0b48e951b444ba971"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
"m_SlotId": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
"m_OutputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "f39a0ab1ea5d4129b8c210c762bed693"
|
||||
},
|
||||
"m_SlotId": 0
|
||||
},
|
||||
"m_InputSlot": {
|
||||
"m_Node": {
|
||||
"m_Id": "83aca69ecbd845e888867dea88a660f1"
|
||||
},
|
||||
"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": "031d019a3f114a639fed0a731159883c"
|
||||
},
|
||||
"m_ActiveTargets": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
|
||||
"m_ObjectId": "031d019a3f114a639fed0a731159883c",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Output",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -108.0,
|
||||
"y": -144.0,
|
||||
"width": 120.0,
|
||||
"height": 77.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "b89a68670a6642e19ae1063415132848"
|
||||
},
|
||||
{
|
||||
"m_Id": "ad82a5146c4a46cc98b02a7e412b84b9"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"IsFirstSlotValid": true
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "23a471ed9f794edb8e8bd66a5f65451e",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "Time",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": [
|
||||
"X"
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
|
||||
"m_ObjectId": "3564f72314574212a0eed0f9581a6b85",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "7a6985bf-76e4-4794-ab89-d013bd6b7c48"
|
||||
},
|
||||
"m_Name": "PositionMap",
|
||||
"m_DefaultReferenceName": "Texture2D_3564f72314574212a0eed0f9581a6b85",
|
||||
"m_OverrideReferenceName": "",
|
||||
"m_GeneratePropertyBlock": true,
|
||||
"m_Precision": 0,
|
||||
"overrideHLSLDeclaration": false,
|
||||
"hlslDeclarationOverride": 0,
|
||||
"m_Hidden": false,
|
||||
"m_Value": {
|
||||
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
|
||||
"m_Guid": ""
|
||||
},
|
||||
"m_Modifiable": true,
|
||||
"m_DefaultType": 0
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
|
||||
"m_ObjectId": "3e7d4ea371804f5c9265e859f8e8e08b",
|
||||
"m_Id": 1,
|
||||
"m_DisplayName": "texSampler",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "texSampler",
|
||||
"m_StageCapability": 3
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
"m_ObjectId": "431f7271c3544d459b5128258fd524ed",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -546.0,
|
||||
"y": -32.0,
|
||||
"width": 102.0,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "23a471ed9f794edb8e8bd66a5f65451e"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "f9b649ed28584dca8a522f3fb582f350"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
"m_ObjectId": "46dfe2d873b3436a89d174ac3545bc00",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -544.0,
|
||||
"y": -104.0,
|
||||
"width": 93.0,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "91fad60529a14d678005224cfbac1b50"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "a09a6ce7e08545d99b5bda70586f4e79"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
|
||||
"m_ObjectId": "4820d64a797d4948a129f455b98feed8",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "SamplerState",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "5ae3156d60f846c68b9b446bc239bbea",
|
||||
"m_Id": 10,
|
||||
"m_DisplayName": "alpha",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "alpha",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
"m_ObjectId": "5c18cb5e2e0542c2ae766d7de7011cda",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -594.0,
|
||||
"y": -56.0,
|
||||
"width": 151.0,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "ffcaa3e5c6a5468c92d6d08c301a6f59"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "3564f72314574212a0eed0f9581a6b85"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
|
||||
"m_ObjectId": "7dbe167981d2452a8248b6d23432a518",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "uvIndex",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "uvIndex",
|
||||
"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.CustomFunctionNode",
|
||||
"m_ObjectId": "83aca69ecbd845e888867dea88a660f1",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Custom Function",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -405.0,
|
||||
"y": -144.0,
|
||||
"width": 237.99998474121095,
|
||||
"height": 494.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "7dbe167981d2452a8248b6d23432a518"
|
||||
},
|
||||
{
|
||||
"m_Id": "3e7d4ea371804f5c9265e859f8e8e08b"
|
||||
},
|
||||
{
|
||||
"m_Id": "cb715a22dd514d2f9ec4045d78f7361b"
|
||||
},
|
||||
{
|
||||
"m_Id": "c24141b2554f431fbe3223c66bd8f0f0"
|
||||
},
|
||||
{
|
||||
"m_Id": "ee509cecfe5046ebb88dc4c3ae5e2fed"
|
||||
},
|
||||
{
|
||||
"m_Id": "f08b7a93deeb46548e0a57309906d22a"
|
||||
},
|
||||
{
|
||||
"m_Id": "5ae3156d60f846c68b9b446bc239bbea"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_SourceType": 0,
|
||||
"m_FunctionName": "VA1",
|
||||
"m_FunctionSource": "a1250bb4cf9f61147bba30a99144d8f2",
|
||||
"m_FunctionBody": "Enter function body here..."
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
|
||||
"m_ObjectId": "91fad60529a14d678005224cfbac1b50",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "UV",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"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": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
|
||||
"m_ObjectId": "967e0c2bcb6e48c2b85b82c6d4c734a4",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "26e53708-434a-4d58-b8b2-d8fb8005d644"
|
||||
},
|
||||
"m_Name": "MaxFrames",
|
||||
"m_DefaultReferenceName": "Vector1_967e0c2bcb6e48c2b85b82c6d4c734a4",
|
||||
"m_OverrideReferenceName": "",
|
||||
"m_GeneratePropertyBlock": true,
|
||||
"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.SamplerStateShaderProperty",
|
||||
"m_ObjectId": "975a04061f8d4786bce18d1574108732",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "374e9a5f-1ef4-43a2-9ff2-6108a1976ab0"
|
||||
},
|
||||
"m_Name": "SamplerState",
|
||||
"m_DefaultReferenceName": "",
|
||||
"m_OverrideReferenceName": "SamplerState_Linear_Repeat",
|
||||
"m_GeneratePropertyBlock": true,
|
||||
"m_Precision": 0,
|
||||
"overrideHLSLDeclaration": false,
|
||||
"hlslDeclarationOverride": 0,
|
||||
"m_Hidden": false,
|
||||
"m_Value": {
|
||||
"m_filter": 0,
|
||||
"m_wrap": 0
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
|
||||
"m_ObjectId": "a09a6ce7e08545d99b5bda70586f4e79",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "96fb959c-8624-4642-9ac6-6b405b5a6dd4"
|
||||
},
|
||||
"m_Name": "UV",
|
||||
"m_DefaultReferenceName": "Vector2_a09a6ce7e08545d99b5bda70586f4e79",
|
||||
"m_OverrideReferenceName": "",
|
||||
"m_GeneratePropertyBlock": true,
|
||||
"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.Vector1MaterialSlot",
|
||||
"m_ObjectId": "ad82a5146c4a46cc98b02a7e412b84b9",
|
||||
"m_Id": 2,
|
||||
"m_DisplayName": "Alpha",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Alpha",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": []
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "b23754f8d4404c9cb59d3879708464ad",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "MaxFrames",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": [
|
||||
"X"
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
||||
"m_ObjectId": "b89a68670a6642e19ae1063415132848",
|
||||
"m_Id": 1,
|
||||
"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": [
|
||||
"X",
|
||||
"Y",
|
||||
"Z"
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
"m_ObjectId": "bc36bc83631c44e0b48e951b444ba971",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -576.0,
|
||||
"y": -8.0,
|
||||
"width": 136.0,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "b23754f8d4404c9cb59d3879708464ad"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "967e0c2bcb6e48c2b85b82c6d4c734a4"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "c24141b2554f431fbe3223c66bd8f0f0",
|
||||
"m_Id": 4,
|
||||
"m_DisplayName": "time",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "time",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": [
|
||||
"X"
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
|
||||
"m_ObjectId": "cb715a22dd514d2f9ec4045d78f7361b",
|
||||
"m_Id": 2,
|
||||
"m_DisplayName": "positionMap",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "positionMap",
|
||||
"m_StageCapability": 3,
|
||||
"m_Texture": {
|
||||
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
|
||||
"m_Guid": ""
|
||||
},
|
||||
"m_DefaultType": 0
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
||||
"m_ObjectId": "ee509cecfe5046ebb88dc4c3ae5e2fed",
|
||||
"m_Id": 6,
|
||||
"m_DisplayName": "maxFrames",
|
||||
"m_SlotType": 0,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "maxFrames",
|
||||
"m_StageCapability": 3,
|
||||
"m_Value": 0.0,
|
||||
"m_DefaultValue": 0.0,
|
||||
"m_Labels": [
|
||||
"X"
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
||||
"m_ObjectId": "f08b7a93deeb46548e0a57309906d22a",
|
||||
"m_Id": 9,
|
||||
"m_DisplayName": "position",
|
||||
"m_SlotType": 1,
|
||||
"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": [
|
||||
"X",
|
||||
"Y",
|
||||
"Z"
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 0,
|
||||
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
||||
"m_ObjectId": "f39a0ab1ea5d4129b8c210c762bed693",
|
||||
"m_Group": {
|
||||
"m_Id": ""
|
||||
},
|
||||
"m_Name": "Property",
|
||||
"m_DrawState": {
|
||||
"m_Expanded": true,
|
||||
"m_Position": {
|
||||
"serializedVersion": "2",
|
||||
"x": -606.0,
|
||||
"y": -80.0,
|
||||
"width": 155.0,
|
||||
"height": 34.0
|
||||
}
|
||||
},
|
||||
"m_Slots": [
|
||||
{
|
||||
"m_Id": "4820d64a797d4948a129f455b98feed8"
|
||||
}
|
||||
],
|
||||
"synonyms": [],
|
||||
"m_Precision": 0,
|
||||
"m_PreviewExpanded": true,
|
||||
"m_CustomColors": {
|
||||
"m_SerializableColors": []
|
||||
},
|
||||
"m_Property": {
|
||||
"m_Id": "975a04061f8d4786bce18d1574108732"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"m_SGVersion": 1,
|
||||
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
|
||||
"m_ObjectId": "f9b649ed28584dca8a522f3fb582f350",
|
||||
"m_Guid": {
|
||||
"m_GuidSerialized": "07478aa4-3d18-4430-bf12-24688db601b8"
|
||||
},
|
||||
"m_Name": "Time",
|
||||
"m_DefaultReferenceName": "Vector1_f9b649ed28584dca8a522f3fb582f350",
|
||||
"m_OverrideReferenceName": "",
|
||||
"m_GeneratePropertyBlock": true,
|
||||
"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.Texture2DMaterialSlot",
|
||||
"m_ObjectId": "ffcaa3e5c6a5468c92d6d08c301a6f59",
|
||||
"m_Id": 0,
|
||||
"m_DisplayName": "PositionMap",
|
||||
"m_SlotType": 1,
|
||||
"m_Hidden": false,
|
||||
"m_ShaderOutputName": "Out",
|
||||
"m_StageCapability": 3
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f0d283d8c3880947b6db8f287317cb6
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
|
Loading…
Reference in New Issue
Block a user