Post

You can do cool things with shaders in Compose using RuntimeShader and AGSL (Android Graphics Shading Language). Here is a warping effect shader 😵‍💫 This code runs directly on the GPU using Android's RenderEngine.

1 repost5 likes

I wish there were more / better resources on Skia shaders. I know they’re functionally identical to OpenGL shaders (at least last I checked), but as someone who wants to use shaders in Compose but has little to no shader experience, it’d be nice if there were more beginner Compose / Skia resources.

The Book of Shaders is a good starting point on GLSL... there is extremely little difference from there to AGSL: mostly where the origin is, how colour spaces are handled, and some keywords