Baltor Get started

Gallery / Procedural textures

Rain on glass: droplets, running trails and mist

In your harnessProcedural textureMIT

Generate tileable maps of rain on a window: droplets in three size classes as merging domes, running drops that leave meandering trails and beads, and condensation mist wiped clear by them, with an alpha overlay and a normal map for refraction. Use for windows, windscreens, visors and wet camera lenses.

Render of Rain on glass: droplets, running trails and mist
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry point
generate
Maps
albedo, normal, roughness, height, ao
Parameters
drops, drop_size, trails, beading, mist, relief, hue_shift, saturation and 1 more
Presets
default, drizzle, downpour, misted
Tileable
yes
Command line
python rain_on_glass.py --size 1024 --seed 7 --preset NAME --out DIR [--width W --height H] [--set NAME=VALUE] [--directx-normal] [--orm]
Godot material
material.tres
Blender builder
blender_material.build_material(folder)

Limits. A still frame: drops do not move, and trails run down the tile and wrap around it, so a repeating tile repeats its trails. Drops are domes of a fixed profile merged by taking the higher one, not a fluid simulation, and the lighting painted into the albedo assumes light from the upper left. Refraction needs a glass shader that offsets the background by the normal map; the albedo alone only darkens rims and lights one side. Drops smaller than half a pixel are drawn at that size with less height.

Details

Kind
Procedural texture
Engine
Python 3.10 or later
Files
12 files, 196.3 KB
Licence
MIT
Declared effects
runs commands, writes files
Checked with
Godot 4.7.2, gl_compatibility
Checks
command line generates declared maps, maps decode, maps have declared size and channels, maps tile without a seam, normal vectors unit length facing out, maps carry detail, godot imports the maps, godot material template loads every map, godot compatibility render, capture shows the textured surface, blender builds the material
Techniques
Jittered grid placement in three size classes, Flattened power-of-dome height stamps merged by maximum, Random-walk trails painted as capsules with beads, Fractional Brownian motion mist wiped by trail and drop masks, Slope-based rim darkening and directional highlight, Height to tangent-space normal by central differences
Tags
texture, pbr, tileable, rain, water, droplets, glass, window
Identity
library.supply.creative_originals.723d14f265f91bba09d87a96.dfe300e7eb233c2c
Version
dfe300e7eb233c2c3092f6a56f4f9d3481898ee6edf4a2ebe4dc0c7ebea694f5

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.