Normal Face.asset 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. %YAML 1.1
  2. %TAG !u! tag:unity3d.com,2011:
  3. --- !u!114 &11400000
  4. MonoBehaviour:
  5. m_ObjectHideFlags: 0
  6. m_CorrespondingSourceObject: {fileID: 0}
  7. m_PrefabInstance: {fileID: 0}
  8. m_PrefabAsset: {fileID: 0}
  9. m_GameObject: {fileID: 0}
  10. m_Enabled: 1
  11. m_EditorHideFlags: 0
  12. m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
  13. m_Name: Normal Face
  14. m_EditorClassIdentifier:
  15. m_functionInfo: "// Made with Amplify Shader Editor v1.9.7.2\n// Available at the
  16. Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=19702\nNode;AmplifyShaderEditor.StickyNoteNode;74;-352,-1264;Inherit;False;508.3998;151.394;Normal
  17. Face Node;;0.05660379,0.05046281,0.05046281,1;Returns a world-space Face Normal$$Generates
  18. unsmoothed normals for the faces of the mesh. $$The normals are generated using
  19. derivatives so these normals are completely independent from the vertex normals
  20. provided by the mesh.$;0;0\nNode;AmplifyShaderEditor.FunctionSwitch;86;1248,-1024;Inherit;False;Safe
  21. 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
  22. 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(
  23. View );1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;92;480,-544;Inherit;False;Space(
  24. Tangent );1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;94;496,-864;Inherit;False;Space(
  25. Object );1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSubtitle;95;496,-1024;Inherit;False;Space(
  26. 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"
  27. m_functionName:
  28. m_description: 'Derive a World-space Face Normal, or flat normal, from vertex-based
  29. world position, instead of vertex-based world normal, using fragment derivatives.
  30. Space:
  31. reference frame for output normal.'
  32. m_additionalIncludes:
  33. m_additionalIncludes: []
  34. m_outsideIncludes: []
  35. m_additionalPragmas:
  36. m_additionalPragmas: []
  37. m_outsidePragmas: []
  38. m_additionalDirectives:
  39. m_validData: 0
  40. m_isDirty: 0
  41. m_moduleName: ' Additional Directives'
  42. m_independentModule: 1
  43. m_customEdited: 0
  44. m_additionalDirectives: []
  45. m_shaderFunctionDirectives: []
  46. m_nativeDirectives: []
  47. m_nativeDirectivesIndex: -1
  48. m_nativeDirectivesFoldout: 0
  49. m_directivesSaveItems: []
  50. m_nodeCategory: 11
  51. m_headerStyle: 2
  52. m_headerColor: {r: 0, g: 0.18039216, b: 0.4745098, a: 1}
  53. m_customNodeCategory: ASE Normal
  54. m_previewPosition: 0
  55. m_hidden: 0
  56. m_url: