Compute Mip Level.asset 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: Compute Mip Level
  14. m_EditorClassIdentifier:
  15. m_functionInfo: "// Made with Amplify Shader Editor v1.9.4\n// Available at the
  16. Unity Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=19400\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;10;-1120,-128;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.DdxOpNode;8;-960,-128;Inherit;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.DotProductOpNode;6;-832,-128;Inherit;False;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMaxOpNode;2;-704,-128;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.Log2OpNode;3;-576,-128;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.DdyOpNode;9;-960,-48;Inherit;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.DotProductOpNode;7;-832,-32;Inherit;False;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;4;-448,-128;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0.5;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;16;-1280,-128;Inherit;False;UV;2;0;False;1;0;FLOAT2;0,0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.TexCoordVertexDataNode;19;-1504,-128;Inherit;False;0;2;0;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.DynamicAppendNode;15;-1280,16;Inherit;False;FLOAT2;4;0;FLOAT2;0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionInput;20;-448,-32;Inherit;False;Bias;1;2;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleMaxOpNode;22;-128,-128;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SimpleSubtractOpNode;21;-288,-128;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;18;-1472,16;Inherit;False;Size;2;1;False;1;0;FLOAT2;1024,1024;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.FunctionOutput;17;0,-128;Inherit;False;True;-1;Mip
  17. Level;0;False;1;0;FLOAT;0;False;1;FLOAT;0\nWireConnection;10;0;16;0\nWireConnection;10;1;15;0\nWireConnection;8;0;10;0\nWireConnection;6;0;8;0\nWireConnection;6;1;8;0\nWireConnection;2;0;6;0\nWireConnection;2;1;7;0\nWireConnection;3;0;2;0\nWireConnection;9;0;10;0\nWireConnection;7;0;9;0\nWireConnection;7;1;9;0\nWireConnection;4;0;3;0\nWireConnection;16;0;19;0\nWireConnection;15;0;18;0\nWireConnection;22;0;21;0\nWireConnection;21;0;4;0\nWireConnection;21;1;20;0\nWireConnection;17;0;22;0\nASEEND*/\n//CHKSM=AB0706DDDBFEBAFF542E0E96F35A88B76C4DCB9F"
  18. m_functionName:
  19. m_description: Computes fragment mip map LOD (Level of Detail) based on UV coordinates,
  20. texture size and LOD bias.
  21. m_additionalIncludes:
  22. m_additionalIncludes: []
  23. m_outsideIncludes: []
  24. m_additionalPragmas:
  25. m_additionalPragmas: []
  26. m_outsidePragmas: []
  27. m_additionalDirectives:
  28. m_validData: 0
  29. m_isDirty: 0
  30. m_moduleName: ' Additional Directives'
  31. m_independentModule: 1
  32. m_customEdited: 0
  33. m_additionalDirectives: []
  34. m_shaderFunctionDirectives: []
  35. m_nativeDirectives: []
  36. m_nativeDirectivesIndex: -1
  37. m_nativeDirectivesFoldout: 0
  38. m_directivesSaveItems: []
  39. m_nodeCategory: 7
  40. m_headerStyle: 1
  41. m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
  42. m_customNodeCategory:
  43. m_previewPosition: 0
  44. m_hidden: 0
  45. m_url: