← All resources

Finger Shadows in Compose

Auto-discovered

Blog Intermediate

Romain Guy

Visit resource ↗

Description

Finger Shadows in Compose is a November 2025 graphics article by Romain Guy on soft finger or stylus shadows over Jetpack Compose UI using Android RuntimeShader.

It models the finger as an oriented capsule, estimates soft occlusion with a light cone and spherical-cap intersection from Oat and Sander Ambient Aperture Lighting, and ships a full GLSL RuntimeShader plus Compose Canvas ShaderBrush sample. Parameters include finger length, radius, orientation, light direction, angular size, and distance fade, with notes on pressure fade.

It is for intermediate Android UI and graphics developers comfortable with Compose Canvas and custom GPU shaders.

The post is a free HTML article with demo videos, shader listings, Kotlin integration notes, and a linked GitHub sample.

It is useful when you need contact-hardening finger shadows without a full 3D scene graph inside Compose UI.