World Normal Face.asset 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: World 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;-96,-1200;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.StickyNoteNode;83;-752,-1216;Inherit;False;211.6436;102.443;;;0.05660379,0.0536668,0.0536668,1;Use
  21. Camera-relative World Position to avoid precision issues$;0;0\nNode;AmplifyShaderEditor.NormalizeNode;79;48,-1024;Inherit;False;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.NormalizeNode;87;49,-944;Inherit;False;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionSwitch;86;224,-1024;Inherit;False;Safe
  22. 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.SimpleMultiplyOpNode;94;-160,-1024;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.PositionNode;90;-768,-1024;Inherit;False;2;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.DdxOpNode;91;-512,-1024;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DdyOpNode;92;-512,-944;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.CrossProductOpNode;93;-368,-1024;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.ProjectionParams;95;-416,-848;Inherit;False;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.FunctionOutput;30;448,-1024;Inherit;False;True;-1;Out;0;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nWireConnection;79;0;94;0\nWireConnection;87;0;94;0\nWireConnection;86;0;79;0\nWireConnection;86;1;87;0\nWireConnection;94;0;93;0\nWireConnection;94;1;95;1\nWireConnection;91;0;90;0\nWireConnection;92;0;90;0\nWireConnection;93;0;91;0\nWireConnection;93;1;92;0\nWireConnection;30;0;86;0\nASEEND*/\n//CHKSM=C28174011C90C66835859D1291D78DD77AFC149B"
  23. m_functionName:
  24. m_description: Derive a World-space Face Normal, or flat normal, from vertex-based
  25. world position, instead of vertex-based world normal, using fragment derivatives.
  26. m_additionalIncludes:
  27. m_additionalIncludes: []
  28. m_outsideIncludes: []
  29. m_additionalPragmas:
  30. m_additionalPragmas: []
  31. m_outsidePragmas: []
  32. m_additionalDirectives:
  33. m_validData: 0
  34. m_isDirty: 0
  35. m_moduleName: ' Additional Directives'
  36. m_independentModule: 1
  37. m_customEdited: 0
  38. m_additionalDirectives: []
  39. m_shaderFunctionDirectives: []
  40. m_nativeDirectives: []
  41. m_nativeDirectivesIndex: -1
  42. m_nativeDirectivesFoldout: 0
  43. m_directivesSaveItems: []
  44. m_nodeCategory: 11
  45. m_headerStyle: 2
  46. m_headerColor: {r: 0, g: 0.18039216, b: 0.4745098, a: 1}
  47. m_customNodeCategory: ASE Normal
  48. m_previewPosition: 0
  49. m_hidden: 0
  50. m_url: