×
×
Description
Changelog
Reviews (0)
Reflections for top-down pixel-art games built with TileMapLayer. Tag your water and glass tiles in the TileSet, add a component, and sprites reflect nicely.
Features
- Water reflections: characters, trees and props are drawn upside down beneath themselves.
- Mirrors: characters standing in front of glass tiles (shop windows, doors) appear in the glass, facing the other way.
- Clean edges without mask art: reflections only show on pixels whose screen color matches your water or glass colors, so shores, frames and handles stay untouched.
- Pixel-perfect ripple: rows shift by whole pixels, with per-tile strength (still ice, calm ponds, rough rivers).
- Clouds and cloud shadows: procedural pixel clouds on the water, with matching shadows across the land.
- Works with y-sort, and only renders what the camera sees.
- Debug views for tuning colors and mirror detection.
Setup
- Add the custom data layers to your TileSet and tag water and glass tiles.
- Add a
ReflectableComponentto each sprite that should reflect. - Add a
ReflectionMaskGenerator(water, puddles, ice) orMirrorMaskGenerator(glass doors, mirrors) under the tilemap.
A demo scene is included. See the README for full setup.
Requires Godot 4.5+
Assets shown: MPWSP01 by Scarloxy
Changelog for version v1.0
2026-11-15 22:10:28
No changelog provided for this version.