Hi,
I’ve solved the issue myself. Thanks to this post : Where did ShaderToy go? - #12 by Panisher
I’ve compiled addon myself from source with changes.
The issue is due to the GL_RED and GL_LUMINANCE detection.
This is my procedure with OSMC :
sudo apt install git zip libgles2-mesa-dev build-essential
git clone --branch Matrix https://github.com/xbmc/visualization.shadertoy.git
git clone --branch Matrix https://github.com/xbmc/xbmc.git
Change to GLES :
nano /home/osmc/visualization.shadertoy CMakeLists.txt
Modify line 12 to
if(1 == 0)
Force GL_LUMINANCE
nano /home/osmc/visualization.shadertoy/src/main.cpp
Comment lines 24 and 26 like this :
//#ifndef GL_RED
#define GL_RED GL_LUMINANCE
//#endif
Rename plugin to Shadertoy 2 to disable conflict :
nano /home/osmc/visualization.shadertoy/visualization.shadertoy/addon.xml.in
Modify lines 3 and 5 like this :
id="visualization.shadertoy2"
version="19.1.2"
name="Shadertoy 2"
Compile addon :
cd visualization.shadertoy && mkdir build && cd build
cmake -DADDONS_TO_BUILD=visualization.shadertoy -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/kodi-build/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons
make
Link the addon folder to osmc :
ln -s ln -s /home/osmc/xbmc/kodi-build/addons/visualization.shadertoy /home/osmc/.kodi/addons/visualisation.shadertoy2
Restart raspberry and activate Shadertoy 2 module