12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- %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: Normal Face
- m_EditorClassIdentifier:
- m_functionInfo: "// Made with Amplify Shader Editor v1.9.7.2\n// Available at the
- Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=19702\nNode;AmplifyShaderEditor.StickyNoteNode;74;-352,-1264;Inherit;False;508.3998;151.394;Normal
- Face Node;;0.05660379,0.05046281,0.05046281,1;Returns a world-space Face Normal$$Generates
- unsmoothed normals for the faces of the mesh. $$The normals are generated using
- derivatives so these normals are completely independent from the vertex normals
- provided by the mesh.$;0;0\nNode;AmplifyShaderEditor.FunctionSwitch;86;1248,-1024;Inherit;False;Safe
- Normalize;True;1;2;1;In 0;In 1;Object;-1;10;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;9;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;79;1072,-1024;Inherit;False;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;87;1072,-944;Inherit;False;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSwitch;88;832,-1024;Inherit;False;Space;False;0;4;-1;World;Object;View;Tangent;Object;-1;10;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;9;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.StickyNoteNode;96;-720,-1152;Inherit;False;211.6436;102.443;;;0.05660379,0.0536668,0.0536668,1;Use
- Camera-relative World Position to avoid precision issues$;0;0\nNode;AmplifyShaderEditor.TransformDirectionNode;89;224,-864;Inherit;False;World;Object;False;Fast;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.TransformDirectionNode;90;224,-704;Inherit;False;World;View;False;Fast;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.TransformDirectionNode;91;224,-544;Inherit;False;World;Tangent;False;Fast;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.FunctionSubtitle;93;496,-704;Inherit;False;Space(
- View );1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;92;480,-544;Inherit;False;Space(
- Tangent );1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;94;496,-864;Inherit;False;Space(
- Object );1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;95;496,-1024;Inherit;False;Space(
- World );1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.PositionNode;101;-704,-1024;Inherit;False;2;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.DdxOpNode;77;-448,-1024;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DdyOpNode;76;-448,-944;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CrossProductOpNode;78;-304,-1024;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;102;-80,-1024;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ProjectionParams;103;-336,-880;Inherit;False;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.FunctionOutput;30;1472,-1024;Inherit;False;True;-1;Out;0;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nWireConnection;86;0;79;0\nWireConnection;86;1;87;0\nWireConnection;79;0;88;0\nWireConnection;87;0;88;0\nWireConnection;88;0;95;0\nWireConnection;88;1;94;0\nWireConnection;88;2;93;0\nWireConnection;88;3;92;0\nWireConnection;89;0;102;0\nWireConnection;90;0;102;0\nWireConnection;91;0;102;0\nWireConnection;93;0;90;0\nWireConnection;92;0;91;0\nWireConnection;94;0;89;0\nWireConnection;95;0;102;0\nWireConnection;77;0;101;0\nWireConnection;76;0;101;0\nWireConnection;78;0;77;0\nWireConnection;78;1;76;0\nWireConnection;102;0;78;0\nWireConnection;102;1;103;1\nWireConnection;30;0;86;0\nASEEND*/\n//CHKSM=DA6244DFCEBA059D610BD51A25569FA508C0EF11"
- m_functionName:
- m_description: 'Derive a World-space Face Normal, or flat normal, from vertex-based
- world position, instead of vertex-based world normal, using fragment derivatives.
- Space:
- reference frame for output normal.'
- 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: 11
- m_headerStyle: 2
- m_headerColor: {r: 0, g: 0.18039216, b: 0.4745098, a: 1}
- m_customNodeCategory: ASE Normal
- m_previewPosition: 0
- m_hidden: 0
- m_url:
|