Closed stanoddly closed 1 year ago
Yes, I was correct. The original raylib examples uses this:
#if defined(PLATFORM_DESKTOP)
#define GLSL_VERSION 330
#else // PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
#define GLSL_VERSION 100
#endif
The examples from ChrisDill/Raylib-cs-Examples have hardcoded version of shaders which isn't compatible with WebGl. For example: https://github.com/ChrisDill/Raylib-cs-Examples/blob/master/Examples/Shaders/BasicLighting.cs#L68
Any example using demo shaders is failing, I suspect that the demo examples don't include the GLES shaders, but didn't really have time to take a look.
See for example: https://disketteman.github.io/DotnetRaylibWasm/raylib.html?arg=TextureWaves