GPU Gems 3 - Chapter 1. Generating Complex Procedural Terrains Using the GPU
We then logically concatenate (with a bitwise OR operation) these eight bits to produce a byte—also called the case—in the range 0–255. If the case is 0 or 255, then the cell is entirely inside or outside the terrain and, as previously described, no polyg...