An open API service indexing awesome lists of open source software.

https://github.com/otdavies/fasttilerandomization

A novel anti-tiling method for real time shaders
https://github.com/otdavies/fasttilerandomization

Last synced: about 2 months ago
JSON representation

A novel anti-tiling method for real time shaders

Awesome Lists containing this project

README

        

# Fast Tile Randomization (FTR)

Interactive demonstration of a texture tiling technique that uses an overlapping diamond pattern + rotation + blending to reduced repetition artifacts. This only uses 2 texture samples, thus is ideal for real time usage.

## ---> [Try Demo](https://otdavies.github.io/FastTileRandomization/) <---

![chrome_Th3zh0hmF5](https://github.com/user-attachments/assets/03bda29e-e974-4295-a8ba-60bae50437ba)

## How it works
The algorithm uses two reference points (corners and centers) to create overlapping diamonds of randomly rotated texture patches, then blends between them based on distance. This creates a more natural-looking tiling pattern that reduces the obvious repetition typically seen in tiled textures.

![example](https://github.com/user-attachments/assets/d463cfaa-2bfc-43c7-937d-1fe3a5e87bd0)

## Controls
- Rotation: Controls the maximum rotation amount
- Blend Falloff: Adjusts how sharply the algorithm transitions between rotated sections
- Blend Offset: Modifies the center point influence
- Scale: Adjusts the tiling scale