
High-performance real-time AGSL, SkSL and pure-canvas shader engine delivering GPU-accelerated visual effects, dual-input transitions, procedural generative art and a unified zero-recomposition declarative API.
A high-performance, real-time AGSL, SkSL, and Pure Canvas shader engine for Jetpack Compose Multiplatform.
Empowers Compose developers to craft GPU-accelerated visual effects, dual-input screen transitions, procedural generative art, and optical lenses across Android, Desktop (JVM), iOS, and Web (Wasm/JS) with a unified, zero-recomposition declarative API.
RuntimeShader / RuntimeEffect).DrawScope, 2D triangle mesh deformation (drawVertices), 2.5D perspective scaling, and channel-isolation ColorMatrix filters.Modifier.generativeShaderCanvas(controller) and ShaderTransitionLayout without managing low-level render passes or JNI bindings.GraphicsLayer surfaces and pumps GPU uniforms every frame without triggering Compose recomposition passes.Add the dependency to your module's build.gradle.kts:
dependencies {
implementation("pro.jayeshseth.shaderengine:compose-shader-engine:1.0.0-alpha01")
}// 1. Declare your AGSL / SkSL shader
val MyShader = """
uniform float2 resolution;
uniform float time;
uniform float progress;
half4 main(float2 fragCoord) {
float2 uv = fragCoord / resolution;
return half4(uv.x, uv.y, sin(time) * 0.5 + 0.5, 1.0);
}
"""
// 2. Drive it with ShaderController in Compose
@Composable
fun ShaderDemoScreen() {
val controller = rememberShaderController(MyShader)
Box(
modifier = Modifier
.fillMaxSize()
.generativeShaderCanvas(controller) {
float("progress", 0.5f)
}
)
}| Home | Transitions (Water Droplets) | Canvas (Quantum Core 3D) | Content (Liquid Glass) | About |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| Home | Transitions (Water Droplets) | Canvas (Quantum Core 3D) | Content (Liquid Glass) | About |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| Home | Transitions (Water Droplets) | Canvas (Quantum Core 3D) | Content (Liquid Glass) | About |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| Platform | Graphics Engine | Tier Support |
|---|---|---|
| Android (API 33+) | Hardware AGSL (RuntimeShader) |
Full Hardware Tier + Pure Canvas |
| Android (API 21–32) | Compose DrawScope & Skia Canvas |
Pure Canvas Tier (drawVertices) |
| Desktop (macOS/Win/Linux) | Skiko / Skia RuntimeEffect
|
Full Hardware Tier + Pure Canvas |
| iOS / Web (Wasm & JS) | Skiko / Canvas Rendering | Pure Canvas Tier |
See ROADMAP.md for milestone goals and planned features.
Copyright 2026 Jayesh Seth (MadFlasher)
Licensed under the Apache License, Version 2.0.
A high-performance, real-time AGSL, SkSL, and Pure Canvas shader engine for Jetpack Compose Multiplatform.
Empowers Compose developers to craft GPU-accelerated visual effects, dual-input screen transitions, procedural generative art, and optical lenses across Android, Desktop (JVM), iOS, and Web (Wasm/JS) with a unified, zero-recomposition declarative API.
RuntimeShader / RuntimeEffect).DrawScope, 2D triangle mesh deformation (drawVertices), 2.5D perspective scaling, and channel-isolation ColorMatrix filters.Modifier.generativeShaderCanvas(controller) and ShaderTransitionLayout without managing low-level render passes or JNI bindings.GraphicsLayer surfaces and pumps GPU uniforms every frame without triggering Compose recomposition passes.Add the dependency to your module's build.gradle.kts:
dependencies {
implementation("pro.jayeshseth.shaderengine:compose-shader-engine:1.0.0-alpha01")
}// 1. Declare your AGSL / SkSL shader
val MyShader = """
uniform float2 resolution;
uniform float time;
uniform float progress;
half4 main(float2 fragCoord) {
float2 uv = fragCoord / resolution;
return half4(uv.x, uv.y, sin(time) * 0.5 + 0.5, 1.0);
}
"""
// 2. Drive it with ShaderController in Compose
@Composable
fun ShaderDemoScreen() {
val controller = rememberShaderController(MyShader)
Box(
modifier = Modifier
.fillMaxSize()
.generativeShaderCanvas(controller) {
float("progress", 0.5f)
}
)
}| Home | Transitions (Water Droplets) | Canvas (Quantum Core 3D) | Content (Liquid Glass) | About |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| Home | Transitions (Water Droplets) | Canvas (Quantum Core 3D) | Content (Liquid Glass) | About |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| Home | Transitions (Water Droplets) | Canvas (Quantum Core 3D) | Content (Liquid Glass) | About |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| Platform | Graphics Engine | Tier Support |
|---|---|---|
| Android (API 33+) | Hardware AGSL (RuntimeShader) |
Full Hardware Tier + Pure Canvas |
| Android (API 21–32) | Compose DrawScope & Skia Canvas |
Pure Canvas Tier (drawVertices) |
| Desktop (macOS/Win/Linux) | Skiko / Skia RuntimeEffect
|
Full Hardware Tier + Pure Canvas |
| iOS / Web (Wasm & JS) | Skiko / Canvas Rendering | Pure Canvas Tier |
See ROADMAP.md for milestone goals and planned features.
Copyright 2026 Jayesh Seth (MadFlasher)
Licensed under the Apache License, Version 2.0.