Generating Textureless Terrain Height Data From Heightmap

Hello,

Lately I’ve been playing around with webGl and I stumbled across a cool little demo: [b]http://codeflow.org/entries/2011/nov/10/webgl-gpu-landscaping-and-erosion/[/b](source code: [b]https://github.com/pyalot/craftscape[/b]) that I’d like to alter slightly to get some cool results.

I’m interested in changing the way the terrain is generated. Instead of layering 10 octaves of simplex noise (located in simplex3d.shader if you are looking through the code), I’d like to simply pull elevation data from a loaded heightmap.

I’ve spent a few days trying different things to no avail and I’m having trouble finding any more applicable resources online.

Any help would be greatly appreciated!