Shader not loading in the build

So far I ve tried:

  • To put my shader inside a “Resources/myShaders” folder
  • Call Resources.load(“myShaders/Shader”)
  • Edit the project settings->graphics settings->add my shader to the Always included shaders settings

None of these worked: My shader doesn’t seem to be loading with the built version of the game, even though it works within the editor when hitting the play button. How can this be so hard? What am I missing?

Turns out that, since I’m writing my shader in GLSL, I also have to add a -force-opengl initialization flag to the built game, which is terribly cumbersome. I suppose there’s an option to compile my builds using OpenGL instead of DirectX, but I can’t find it anywhere. Any help?