2b2539d7df
Implement progress tracking
2018-11-18 21:15:20 -07:00
f0d6177567
Move the render queue to the Diamond-Square object
2018-11-11 22:13:10 -05:00
e62dd1b0f2
Work in the normal calculations
2018-11-11 21:04:03 -05:00
f6f01b6419
Toggle filled and lines mode with z key
2018-11-11 20:34:04 -05:00
dc3de77a59
Debug modifying the geometry
...
packed_float3 != float3 ¯\_(ツ)_/¯
2018-11-11 20:16:08 -05:00
3462fa2458
Update heights of plane geometry in a shader kernel
2018-11-11 19:50:43 -05:00
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