Thanks for the review! Appreciate that. For the shader this is the main code of it.
https://gist.github.com/drewhamlett/d072e16dcf2fa62390780a189ee3380c
You have to have a version that works on web as well as on Mac/Windows.
This might help too
https://github.com/raysan5/raylib/blob/master/examples/shaders/resources/shaders...