Files
flame/doc/tutorials/basic_shader/takeaways.md
Lapu Kornél c54c15fd2d docs: Added basic shader tutorial (#3799)
Added Basic Shader Tutirial to Flame documentation.
Added one note to CONTRIBUTING.md, which explains how to resolve non
UTF-8 characters in path.

---------

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
2026-03-01 18:06:56 +00:00

715 B

Takeaways

Conclusion

There are three layers involved when using shaders in Flame:

  • Component layer (SpriteComponent and PostProcessComponent): connects shaders to Flame components, holds game logic and handles user input.
  • Post process layer (PostProcess): bridges components and shaders, manages runtime settings and updates uniforms each frame.
  • GLSL shader (.frag file): the GPU program that determines the final pixel colors.

Closure

We hope this tutorial helped you understand the basics of using shaders in Flame. Feel free to tweak the code to suit your needs, happy coding!

If you find any errors or have suggestions, please let us know through GitHub or Discord.