hellcat-nardo-felidal/Assets/RalivDynamicPenetrationSystem/Includes/PenetratorAlign.asset

59 lines
3.7 KiB
Plaintext
Raw Normal View History

2023-09-10 04:16:23 +00:00
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
m_Name: PenetratorAlign
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset
Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18900\n26;24;1211;969;1067.626;487.6716;1.3;True;False\nNode;AmplifyShaderEditor.CustomExpressionNode;1;-469.354,-22.32887;Inherit;False;float
ID = step( 0.5 , _OrificeChannel )@$float OrificeType = 0.0@$float baseID = (
ID * 0.02 )@$float holeID = ( baseID + 0.01 )@$float ringID = ( baseID + 0.02
)@$float normalID = ( 0.05 + ( ID * 0.01 ) )@$float physicsID = ( 0.09 + ( ID
* -0.01 ) )@$float4 OrificePositionWorld = float4(0,-1000,0,1)@$float4 orificeNormalWorld
= float4(0,-1000,0,1)@$float4 physicsPositionWorld = float4(0,-10000,0,1)@$$for
(int i=0@i<4@i++) {$\tfloat range = (0.005 * sqrt(1000000 - unity_4LightAtten0[i]))
/ sqrt(unity_4LightAtten0[i])@$\tif (length(unity_LightColor[i].rgb) < 0.0001)
{$\t\tif (abs(fmod(range,0.1)-holeID)<0.005) {$\t\t\tOrificeType=0@$\t\t\tOrificePositionWorld
= float4(unity_4LightPosX0[i], unity_4LightPosY0[i], unity_4LightPosZ0[i], 1)@$\t\t}$\t\tif
(abs(fmod(range,0.1)-ringID)<0.005) {$\t\t\tOrificeType=1@$\t\t\tOrificePositionWorld
= float4(unity_4LightPosX0[i], unity_4LightPosY0[i], unity_4LightPosZ0[i], 1)@$\t\t}$\t\tif
(abs(fmod(range,0.1)-normalID)<0.005) {$\t\t\torificeNormalWorld = float4(unity_4LightPosX0[i],
unity_4LightPosY0[i], unity_4LightPosZ0[i], 1)@$\t\t}$\t\tif (abs(fmod(range,0.1)-physicsID)<0.005)
{$\t\t\tphysicsPositionWorld = float4(unity_4LightPosX0[i], unity_4LightPosY0[i],
unity_4LightPosZ0[i], 1)@$\t\t}$\t}$}$$float3 orificePositionObject = mul( unity_WorldToObject,
OrificePositionWorld ).xyz@$float3 orificeNormalObject = mul( unity_WorldToObject,
orificeNormalWorld ).xyz@$float3 physicsPositionObject = mul( unity_WorldToObject,
physicsPositionWorld ).xyz@$;1;False;4;True;In0;FLOAT;0;In;;Inherit;False;True;OrificePositionTracker;FLOAT3;0,0,0;Out;;Inherit;False;True;OrificeNormalTracker;FLOAT3;0,0,0;Out;;Inherit;False;True;PenetratorPhysicsTracker;FLOAT3;0,0,0;Out;;Inherit;False;GetAlignmentTracking;True;False;0;4;0;FLOAT;0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT;0;FLOAT3;2;FLOAT3;3;FLOAT3;4\nNode;AmplifyShaderEditor.FunctionOutput;0;-55.37553,-58.01243;Inherit;False;True;-1;OrificePositionTracker;2;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;2;-54.94688,25.34636;Inherit;False;False;-1;OrificeNormalTracker;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;3;-53.62843,108.4097;Inherit;False;False;-1;PenetratorPhysicsTracker;1;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nWireConnection;0;0;1;2\nWireConnection;2;0;1;3\nWireConnection;3;0;1;4\nASEEND*/\n//CHKSM=A214DAB650670C5EE1D346F4F0F34E3473BFCC4D"
m_functionName:
m_description:
m_additionalIncludes:
m_additionalIncludes: []
m_outsideIncludes: []
m_additionalPragmas:
m_additionalPragmas: []
m_outsidePragmas: []
m_additionalDirectives:
m_validData: 0
m_isDirty: 0
m_moduleName: ' Additional Directives'
m_independentModule: 1
m_customEdited: 0
m_additionalDirectives: []
m_shaderFunctionDirectives: []
m_nativeDirectives: []
m_nativeDirectivesIndex: -1
m_nativeDirectivesFoldout: 0
m_directivesSaveItems: []
m_nodeCategory: 3
m_customNodeCategory:
m_previewPosition: 0
m_hidden: 0