Files
GLEGram-iOS/submodules/TelegramUI/Components/MediaEditor/MetalResources/EditorUtils.h
T
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

29 lines
518 B
C

#include <metal_stdlib>
#pragma once
half getLuma(half3 color);
half3 rgbToHsv(half3 c);
half3 hsvToRgb(half3 c);
half3 rgbToHsl(half3 color);
half hueToRgb(half f1, half f2, half hue);
half3 hslToRgb(half3 hsl);
half3 rgbToYuv(half3 inP);
half3 yuvToRgb(half3 inP);
half easeInOutSigmoid(half value, half strength);
half powerCurve(half inVal, half mag);
float pnoise3D(float3 p);
float2 coordRot(float2 tc, float angle);
float sdfRoundedRectangle(float2 uv, float2 position, float2 size, float radius);