Commit graph

124 commits

Author SHA1 Message Date
d4d4a0a7ba Attach height texture to vertex shader 2018-11-03 16:35:23 -04:00
a5d08d6974 Over-zealous multiline edit 2018-11-03 16:26:55 -04:00
f1517a2166 Rename an unnecessarily long variable 2018-11-03 16:25:57 -04:00
dac8f24568 Add grid coordinate argument encoding stuff and a texture to hold heights 2018-11-03 16:25:19 -04:00
a5c86f9c31 Doc comments! 2018-11-03 16:02:35 -04:00
5fa89d1e47 Extract Terrain into its own class 2018-11-03 15:59:11 -04:00
ee2431d9c4 Fix Terrain2's build 2018-11-03 15:44:10 -04:00
bf6cd3ca15 Take another stab at getting Terrain to render, but no :( 2018-11-03 15:44:02 -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
df0a4ca6fc Explicitly link Metal and MetalKit 2018-11-03 15:08:01 -04:00
a311423cb1 Strip down shaders to their most basic forms 2018-11-03 15:07:32 -04:00
dff9e5d3bf Terrain grid goes between -1 and 1 2018-11-03 15:07:21 -04:00
49783610e7 In the name of debugging, use a smaller grid and make more local vars 2018-11-03 15:07:03 -04:00
3ce38b4b8b Move all Metal setup to the Renderer 2018-11-03 15:06:30 -04:00
e18a956875 Create the TerrainVC in the xib 2018-11-03 15:05:27 -04:00
35ed423144 Remove alpha render attachment stuff 2018-11-03 14:23:45 -04:00
67134c157b Get all the pieces together
Still doesn't render though. :\
2018-11-03 14:01:34 -04:00
8a664fff70 Pass the device around 2018-11-03 10:50:43 -04:00
2361199267 Add Terrain class that generates terrain 2018-11-03 10:45:57 -04:00
31f2258ec3 Remove CGSize extension that uses nonexistent Size 2018-11-03 10:45:44 -04:00
bb9507e3ec Create a Renderer and copy over the Math library 2018-11-03 10:16:22 -04:00
75f23a94a4 Set up a TerrainViewController with an MTKView 2018-11-03 09:55:46 -04:00
28caab9052 Initial Commit 2018-11-03 09:43:38 -04:00