Shader Derivatives in GameMaker

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 6

  • @DragoniteSpam
    @DragoniteSpam  2 роки тому +5

    As of the 2023.1 update, shader derivatives now work on all platforms besides HTML5 without needing to enable the extension! We're still stuck on old GLSL that doesn't have it built-in, but GameMaker essentially adds the extension automatically to every shader you build. This is mainly to allow the new SDF font feature to work correctly, but it's very good for the rest of us as well.
    It doesn't work on HTML5 because HTML5 is allergic to fun.
    Original comment:
    Update on GLSL extensions not working on OpenGL platforms: right after I recorded this, we figured out that the compilation error is because the shader compiler doesn't like extensions to be defined in the middle of the shader code, and GameMaker prepends a bunch of default shader stuff before sending it off to be compiled. So if you edit the default shader file in your GameMaker runtime installation to include the extension instead of putting it in your code, it'll compile just find and you can use extensions on OpenGL platforms. Use this power responsibly.

    • @xotmatrix
      @xotmatrix 2 роки тому

      Does this really work now? I experimented with this extension injection trick years ago but I could never get it to work reliably. Hopefully this will be moot soon.

    • @DragoniteSpam
      @DragoniteSpam  2 роки тому

      @@xotmatrix I tested it on Linux, HTML5 might be stubborn because it's HTML5 but other than that graphical behaviors tend to be the same across the other OGL platforms

    • @xotmatrix
      @xotmatrix 2 роки тому

      @@DragoniteSpam I believe Xor mentioned recently that he has had some success with the standard derivates extension as well. My problems with it were really weird. It would only seem to work randomly from compilation to compilation. I couldn't figure out if it was GameMaker or ANGLE. I talked to Russell about it but he didn't know either. I think this was back in the 1.4.x days, so obviously things are very different today.

  • @Planarwalk
    @Planarwalk 2 роки тому +2

    Ahh, barycentric stuff... Why does Barry get to be at the center of everything? Why can't it be Hannah?

  • @prowokator
    @prowokator 2 роки тому

    Rip bunny :(