FoxiGram/TMessagesProj/src/main/res/raw/camera_vert.glsl
instant992 8e79f2ee9c FoxiGram: Telegram client with built-in Xray VLESS proxy
Based on Nekogram. Key additions:
- Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app)
- Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so
- Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI
- Auto-restore proxy on restart, rebind to active network (LTE/WiFi)
- Server credentials externalized to git-ignored XrayServers.java (+ template)
- libxray Go source included; compiled .so, keystore, google-services.json ignored
2026-06-08 16:41:07 +04:00

18 lines
No EOL
551 B
GLSL

uniform mat4 uMVPMatrix;
uniform mat4 uSTMatrix;
attribute vec4 aPosition;
attribute vec4 aTextureCoord;
varying vec2 uv;
varying vec2 auv;
uniform float crossfade;
uniform mat4 cameraMatrix;
uniform mat4 oppositeCameraMatrix;
mat4 mix(mat4 a, mat4 b, float t) {
return a * (1. - t) + b * t;
}
void main() {
mat4 matrix = mix(cameraMatrix, oppositeCameraMatrix, crossfade);
gl_Position = uMVPMatrix * matrix * aPosition;
uv = (uSTMatrix * aTextureCoord).xy;
auv = (uMVPMatrix * vec4((uSTMatrix * aTextureCoord).xy - .5, 0.0, 1.0) + .5).xy;
}