Install:
cd && pkg install wget virglrenderer-android virglrenderer angle-android
rm -rf ~/vgl && wget https://github.com/ar37-rs/virgl-angle-termux/releases/download/latest/vgl && chmod +x ~/vgl
(Read for more info to setup xfce4 desktop for native termux-x11)
Make sure to set config before launching your app like so:
~/vgl use-angle
or use virgl android (fix for some gpus unable to use angle-vulkan issue)
~/vgl use-android
and then simply
~/vgl firefox
or
~/vgl any_termux_x11_binary_app
If there's some color issues (if not, skip this), to fix virglrenderer-v1.x.x such incorrect color (or too dark) on d3d (Direct X) apps/games use d3d config like so:
~/vgl cfg-d3d
and then
~/vgl wine any_d3d_games
or
(Read more for info on how install and run wine using xow64 script)
~/vgl ~/xow64 s
to switch back using OpenGL config use command,
~/vgl cfg-gl
for OpenGL apps/games on wine use OpenGL config as above.
Copy vgl file like so:
cp /data/data/com.termux/files/home/vgl /usr/bin/vgl && chmod +x /usr/bin/vgl
prebuilt vulkan with validation layer (fast and more stable) 13.9 MB:
cd && wget https://github.com/ar37-rs/virgl-angle-termux/releases/download/2.1.24608/angle-android_2.1.24608_aarch64.deb
dpkg -i angle-android_2.1.24608_aarch64.deb
or minimal version (for android 7+) without vulkan validation layer 2.9 MB (slower):
cd && wget https://github.com/ar37-rs/virgl-angle-termux/releases/download/2.1.24570/angle-android_2.1.24570_minimal.deb
dpkg -i angle-android_2.1.24570_minimal.deb
and then repeat usage above.
https://github.com/termux/termux-packages/tree/master/packages/angle-android