Add another utility

This commit is contained in:
Wojtek Figat
2026-03-12 22:50:54 +01:00
parent 88587fb6a4
commit d2a03b90ec

View File

@@ -65,6 +65,11 @@ float GetFontMSDFMedian(Texture2D font, float2 uv)
return max(min(msd.r, msd.g), min(max(msd.r, msd.g), msd.b));
}
float GetFontMSDFMedian(float4 msd)
{
return max(min(msd.r, msd.g), min(max(msd.r, msd.g), msd.b));
}
float GetFontMSDFPixelRange(Texture2D font, float2 uv)
{
uint width, height;