Member-only story
Pushing the Boundaries of Compose Multiplatform with AGSL Shaders
Creating stunning graphics across platforms with Compose and Shaders
Compose Multiplatform has been gaining significant attention, especially since its official support was announced at the last Google I/O. However, it’s important to continue exploring new challenges in this evolving field. This led me to investigate the feasibility of using shaders in this context. In this article, I will demonstrate how to create shaders with AGSL and run them seamlessly across various platforms.
To illustrate this, I developed a simple app where shaders play a central role. The project, called Photo-FX, is available on GitHub (there is also a web-based live-version here). The app allows you to select a photo and apply various effects to it, with the ability to adjust specific parameters of the chosen effect:
Shader’s anatomy 🧩
No need to worry — this isn’t a discussion about Shonda Rhimes’ award-winning TV show. Instead, we’re diving into the…