1. Overview

This document implements monolith_fbm, a seed for a stateless fractional brownian motion algorithm.

monolith_fbm takes in an xy coordinate pair, expected to be normalized in range 0-1, as well as the number of octaves. It will return a normalized amplitude. fbm calls can be mixed and matched together and warped with time to create 2-dimensional swirls of color.

This FBM algorithm is based on some of code snippets found in the book of shaders, except instead of shader code on the GPU, it's C code on the CPU.



prev | home | next