Files
UmaViewer/Assets/Resources/NarsShader/Funcs/Dot_Creation.asset
T
katboi01 3b2bae40cd Merged changed from Croakfang's branch. (#72)
* merge (#71)

* Bug fix, improved UI layout and live vocals

* Bug Fixes, New Live Compatibility

---------

Co-authored-by: CroakFang <1605296300@qq.com>

* recovered shader functions

* Fixed texture loading for costume 0015

---------

Co-authored-by: CroakFang <1605296300@qq.com>
2024-09-09 10:27:37 +02:00

57 lines
6.5 KiB
Plaintext

%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: Dot_Creation
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor v1.9.2\n// Available at the
Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=19200\nNode;AmplifyShaderEditor.ConditionalIfNode;3;-1267.551,74.28906;Inherit;False;False;5;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionInput;17;-984.6958,-383.1276;Inherit;False;Light
Direction Setting;1;1;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.DotProductOpNode;50;5.864481,631.6702;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldPosInputsNode;40;-927.6497,508.8965;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.WorldSpaceLightDirHlpNode;36;-1539.93,-263.8102;Inherit;True;True;1;0;FLOAT;0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.DotProductOpNode;46;-224.0256,-66.7878;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.WorldNormalVector;47;-561.067,190.5634;Inherit;False;True;1;0;FLOAT3;0,0,1;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.NormalizeNode;48;-555.2034,402.4863;Inherit;False;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleAddOpNode;49;-302.2365,670.5883;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DotProductOpNode;31;-115.166,400.1263;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.CustomExpressionNode;32;-713.65,513.8965;Inherit;False;#if
UNITY_SINGLE_PASS_STEREO$float3 cameraPos = float3((unity_StereoWorldSpaceCameraPos[0]+
unity_StereoWorldSpaceCameraPos[1])*.5)@ $#else$float3 cameraPos = _WorldSpaceCameraPos@$#endif$float3
worldViewDir = normalize((cameraPos - worldPos))@$return worldViewDir@;3;Create;1;True;worldPos;FLOAT3;0,0,0;In;;Float;False;Stereo
Camera View Direction;True;False;0;;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;26;-1752.755,392.6116;Inherit;False;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;51;-161.6992,666.2639;Inherit;False;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionInput;34;-2238.546,194.7088;Inherit;False;View
Dir Offset Yaw;1;6;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;27;-1982.785,409.4107;Inherit;False;FakeLightDir;-1;;638;46d02ae3c8e3e9e4590528574de2dd87;0;2;1;FLOAT;0;False;18;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ConditionalIfNode;9;-661.8511,-120.3108;Inherit;False;False;5;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CustomExpressionNode;30;-2254.546,18.70866;Inherit;False;#if
UNITY_SINGLE_PASS_STEREO$float3 cameraPos = float3((unity_StereoWorldSpaceCameraPos[0]+
unity_StereoWorldSpaceCameraPos[1])*.5)@ $#else$float3 cameraPos = _WorldSpaceCameraPos@$#endif$return
cameraPos@;3;Create;0;Stereo Camera View Position;True;False;0;;False;0;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;38;-1536.367,127.8187;Inherit;False;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ConditionalIfNode;8;-1055.361,-136.637;Inherit;False;False;5;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionInput;28;-2268.384,503.1104;Inherit;False;Fake
Light Dir Y;1;4;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;29;-2263.784,409.4107;Inherit;False;Fake
Light Dir X;1;3;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;16;-1640.696,-54.12757;Inherit;False;Fallback
Light Direction;1;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;12;-1458.696,-375.1276;Inherit;False;IsThereWorldLight;1;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;33;-2238.546,114.7086;Inherit;False;View
Dir Offset Pitch;1;5;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;42;68.10706,404.9595;Inherit;False;False;-1;NdV;1;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;52;197.2115,623.0217;Inherit;False;False;-1;NdH;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionOutput;0;55.6214,-67.40279;Inherit;False;True;-1;NdL;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionNode;53;-1990.284,21.78066;Inherit;False;View_Direction_Offset;-1;;639;877e13b89b0237646a102a2859889d4f;0;3;295;FLOAT3;0,0,0;False;296;FLOAT;0;False;297;FLOAT;0;False;1;FLOAT3;0\nWireConnection;3;0;16;0\nWireConnection;3;2;38;0\nWireConnection;3;3;26;0\nWireConnection;50;0;47;0\nWireConnection;50;1;51;0\nWireConnection;46;0;9;0\nWireConnection;46;1;47;0\nWireConnection;48;0;9;0\nWireConnection;49;0;48;0\nWireConnection;49;1;32;0\nWireConnection;31;0;47;0\nWireConnection;31;1;32;0\nWireConnection;32;0;40;0\nWireConnection;26;0;27;0\nWireConnection;51;0;49;0\nWireConnection;27;1;29;0\nWireConnection;27;18;28;0\nWireConnection;9;0;17;0\nWireConnection;9;2;3;0\nWireConnection;9;3;8;0\nWireConnection;38;0;53;0\nWireConnection;8;0;12;0\nWireConnection;8;2;36;0\nWireConnection;8;3;3;0\nWireConnection;42;0;31;0\nWireConnection;52;0;50;0\nWireConnection;0;0;46;0\nWireConnection;53;295;30;0\nWireConnection;53;296;33;0\nWireConnection;53;297;34;0\nASEEND*/\n//CHKSM=E3A86004D7C8392171470A7CF0F774F06DB0118C"
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_headerStyle: 0
m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
m_customNodeCategory:
m_previewPosition: 0
m_hidden: 0
m_url: