This scalar field represents a grayscale pattern across the terrain. The
renderer later reinterprets these values as dirt color, roughness, and bump
information. Keeping the generator pure lets us unit test the terrain look
without touching any browser-only canvas APIs.
This scalar field represents a grayscale pattern across the terrain. The renderer later reinterprets these values as dirt color, roughness, and bump information. Keeping the generator pure lets us unit test the terrain look without touching any browser-only canvas APIs.