Commit graph

13 commits

Author SHA1 Message Date
cb16b84ab9 Dispatch the Diamond-Square render pass onto a worker queue to keep the main thread free 2018-11-10 20:57:23 -05:00
4e4b6b9bca Render the terrain 2018-11-10 17:08:24 -05:00
5607f01ac1 Finish renaming algorithm -> generator
Xcode missed some
2018-11-10 13:22:01 -05:00
7343f0a83a Wrap algorithm iteration flag in a semaphore 2018-11-07 17:11:30 -05:00
1a5ed92c14 Regeneration on ever 'n' now, but it gets scheduled on every frame in that semaphore group 2018-11-07 17:05:28 -05:00
11b9cba8ac Add a Uniform object for RandomAlgorithm
This object contains several random numbers for the GPU kernel to use when generating random points. This isn't right yet (there are still patterns in the generated data) but it's time to move on...
2018-11-07 16:47:07 -05:00
8ffb0a1cfe Generate terrain on a keypress 2018-11-04 14:19:02 -05:00
55a134882d Proof of concept for Algorithm objects
Next up compute kernel dispatch!
2018-11-04 13:44:47 -05:00
96730ecd41 Use a fixed size 512x512 texture for the height map
This will make implementing other algorithms easier. :D
2018-11-04 11:34:25 -05:00
d4d4a0a7ba Attach height texture to vertex shader 2018-11-03 16:35:23 -04:00
5fa89d1e47 Extract Terrain into its own class 2018-11-03 15:59:11 -04:00
dc179036dc Render a plane in Terrain2 instead of a box 2018-11-03 15:43:47 -04:00
a771c2622a Create Terrain2 app, using Xcode's boilerplate 2018-11-03 15:15:03 -04:00