Files
Continentis/Assets/OtherPlugins/Sprite Shaders Ultimate/ASE/Generated/_SmoothPixel.asset
SoulliesOfficial ad4948207e 推进度!
2025-11-25 21:49:03 -05:00

51 lines
2.7 KiB
Plaintext

%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: _SmoothPixel
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity
Asset Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18935\n215;606;1963;950;1358.5;472.5;1;True;False\nNode;AmplifyShaderEditor.FunctionInput;1;-941.5,-41.5;Inherit;False;In
Texture;9;1;False;1;0;SAMPLER2D;0;False;1;SAMPLER2D;0\nNode;AmplifyShaderEditor.FunctionInput;2;-933.5,119.5;Inherit;False;In
UV;2;0;False;1;0;FLOAT2;1,1;False;1;FLOAT2;0\nNode;AmplifyShaderEditor.TexelSizeNode;4;-760.5,-237.5;Inherit;False;-1;1;0;SAMPLER2D;;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4\nNode;AmplifyShaderEditor.CustomExpressionNode;3;-457.5,-12.5;Inherit;False;float2
size@$size.x = textureTexelSize.z@$size.y = textureTexelSize.w@$$float2 pixel
= float2(1.0,1.0) / size@$$uvs -= pixel * float2(0.5,0.5)@$float2 uv_pixels =
uvs * size@$float2 delta_pixel = frac(uv_pixels) - float2(0.5,0.5)@$$float2 ddxy
= fwidth(uv_pixels)@$float2 mip = log2(ddxy) - 0.5@$$float2 clampedUV = uvs +
(clamp(delta_pixel / ddxy, 0.0, 1.0) - delta_pixel) * pixel@$return tex2Dlod(tex,
float4(clampedUV,0, min(mip.x, mip.y)))@;4;Create;3;True;tex;SAMPLER2D;;In;;Inherit;False;True;textureTexelSize;FLOAT4;0,0,0,0;In;;Inherit;False;True;uvs;FLOAT2;0,0;In;;Inherit;False;texturePointSmooth;False;False;0;;False;3;0;SAMPLER2D;;False;1;FLOAT4;0,0,0,0;False;2;FLOAT2;0,0;False;1;FLOAT4;0\nNode;AmplifyShaderEditor.FunctionOutput;0;-70,-11;Inherit;True;True;-1;Out
Color;0;False;1;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0\nWireConnection;4;0;1;0\nWireConnection;3;0;1;0\nWireConnection;3;1;4;0\nWireConnection;3;2;2;0\nWireConnection;0;0;3;0\nASEEND*/\n//CHKSM=4A88667AA8C948B8B69CA2D106AE8918861BE345"
m_functionName:
m_description:
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: 3
m_customNodeCategory:
m_previewPosition: 0
m_hidden: 0
m_url: