High Level Shader Language (HLSL) - The Basics - GameMaker Studio 2

GLSL ES isn’t the only shader language you can use in GameMaker. When you build a game for Windows, you can also write shader code in the HLSL - the High Level Shader Language! Overall I like HLSL a bit better than GLSL ES, although GLSL ES is a bit simpler and is quicker to write. As a fun fact, the Unity game engine does kind of the opposite of what GameMaker does: you write your shaders in HLSL by default (or at least in CG, which is very similar to HLSL) and then it will translate that to the target platform’s shader language of choice if it needs to. If you’re not familiar with how shaders work in general, you should definitely lean about that before watching this video. Here’s my shader playlist: Microsoft’s documentation on HLSL semantics: The code: GameMaker 3D playlis
Back to Top