Files
KopMap/Assets/AmplifyShaderEditor/Plugins/EditorResources/ShaderFunctions/Compute Mip Level.asset
2025-04-03 02:30:16 +08:00

46 lines
3.6 KiB
Plaintext
Generated

%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: Compute Mip Level
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor v1.9.4\n// Available at the
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
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"
m_functionName:
m_description: Computes fragment mip map LOD (Level of Detail) based on UV coordinates,
texture size and LOD bias.
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: 7
m_headerStyle: 1
m_headerColor: {r: 1, g: 0.4, b: 0, a: 1}
m_customNodeCategory:
m_previewPosition: 0
m_hidden: 0
m_url: