Commit graph

25 commits

Author SHA1 Message Date
720e3b1b64 Render sampled grid with colors and stuff! 2018-10-14 12:51:24 -07:00
3f98d0f478 All to render the grid... 2018-10-14 12:17:17 -07:00
7399d2d187 Let the delegate provide the marchingSquares instance 2018-10-14 08:27:45 -07:00
f77eef76eb Draw some gridlines from the marching squares object
I kinda hate how I did this.
2018-10-13 22:22:10 -07:00
3399bbcd53 Fix the projection stuff
Geometry also in window coordinates, just to make things easier...
2018-10-13 21:29:55 -07:00
f4a9f56fa7 Wait on the semaphore and signal when the buffer is done 2018-10-13 20:53:23 -07:00
dd0306f67a Clean up how the buffer is made; flatten the if tree 2018-10-13 20:53:08 -07:00
a3ae11bfaf Declare a semaphore 2018-10-13 20:52:21 -07:00
6bcdc867c4 Recompute pixelGeometry after resize 2018-10-12 17:29:08 -07:00
1ed5f0bf6e Orthographic projectify the vertexes 2018-10-12 17:15:33 -07:00
6dc175c39d Render triangles as wireframes, instead of rendering lines 2018-10-11 16:54:57 -07:00
cb8afac46f Comments about what's going on 2018-10-11 16:45:01 -07:00
e212a338d7 Load contents of previous pass before rendering geometry 2018-10-11 16:40:29 -07:00
7a14ac461e Execute a pass for rendering marching squares
(This just renders the geometry of the field the pixel pipeline draws onto so far)
2018-10-11 16:28:22 -07:00
03923bdd7e Add marching squares pipeline and configure it 2018-10-11 16:06:05 -07:00
a755a4f3de Pass in pixel format instead of whole view 2018-10-11 16:00:59 -07:00
3808463e55 Move pipelineState into pixelPipeline
Move configuration to its own method
2018-10-11 11:26:09 -07:00
80d4e6f043 Rearrange render pass encoding so that presentation and commit() are outside the encoder if block 2018-10-11 11:15:10 -07:00
81e90f3349 TODO: Idk what this does 2018-10-11 10:58:01 -07:00
8f1e1335bd Use the simd types where I can 2018-10-07 19:32:29 -07:00
5caa763a99 Fix compiler errors after update to Swift 4.2 2018-10-05 13:45:37 -07:00
9f5b7c7cb5 Convert to Swift 4.2 2018-10-05 13:38:32 -07:00
a07bced808 [kit] Create Metal library from Kit bundle, rather than main bundle 2017-08-24 17:59:18 -07:00
6b663f92e8 [kit] Shuffle things around so delegate doesn't have to be given in init()
Classes that use the Renderer might not be ready to assign themselves as delegate when the Renderer is initialized
2017-08-18 09:03:01 -07:00
c226d7e72e [app,kit] Move Renderer and shaders to the Kit 2017-08-16 22:07:30 -07:00
Renamed from Metaballs/Renderer.swift (Browse further)