Skip to content
All components
Humid Day
Frosted Night
0:00/0:00

Shader

Glass Shaders

Glass you lay over any view: fogged with sliding drops, hammered privacy glass, or a frozen window you scrape clear.

Metal + Android RenderEffect + Expo native module

$12

Or get it with Pro

By buying you agree to the Terms and Licence. All sales are final.

Features

  • Three looks: fogged glass, hammered privacy glass and frost
  • Drops slide down the glass and leave clear trails that fog over again
  • Frost grows fern crystals and flakes over a glittering crust
  • Wipe the fog or scrape the frost with a finger; it comes back on its own
  • Works over any view: images, text, whole screens
  • Taps and scrolls still reach what is behind the glass
  • Native on iOS and Android, and holds still with Reduce Motion

Installation

1Install dependencies
npx expo install react-native-reanimated react-native-worklets
2Run a development build (Expo Go can't load native modules)
npx expo run:ios   # or: npx expo run:android

Usage

import { useRef } from 'react';
import { Image, StyleSheet, View } from 'react-native';
import { GlassShaders } from '@/modules/glass-shaders';

export function Window() {
  const content = useRef<View>(null);
  return (
    <View style={styles.window}>
      <View ref={content} collapsable={false} style={StyleSheet.absoluteFill}>
        <Image
          source={{ uri: 'https://picsum.photos/800/1600' }}
          style={StyleSheet.absoluteFill}
        />
      </View>
      <GlassShaders variant="fog" wipeable blurTarget={content} />
    </View>
  );
}

const styles = StyleSheet.create({
  window: { flex: 1, overflow: 'hidden' },
});

blurTarget is the view behind the glass. It must not contain the glass itself.

How it works

A small TypeScript component passes plain numbers to a native view. On Android the glass is a GPU shader set as a RenderEffect on the view behind it, so it draws live. On iOS, fog is the system blur cut by a mask redrawn each frame, while hammered glass and frost draw with Metal from a snapshot. Drops follow the same formula on every renderer, and a finger's wipe is kept in a small grid that fades back over time.

More once you own it

Examples, the full list of props and every advanced option for Glass Shaders are here for owners.

Next componentDust Disintegration
TesseraUI

Welcome back

Sign in to TesseraUI

Your purchases live in your account, so they open on every device you sign in on.

Sign-in isn’t available right now. Please try again in a moment.

By continuing you agree to the Terms, Licence and Privacy Policy.