Commit graph

40 commits

Author SHA1 Message Date
2fa9b838f7 Four color gradients! Standard APIs! Wowwwww 2018-10-09 17:44:07 -07:00
141eee69ee Update the shaders
Translate by (-x, -y) first, then by (x, y) to get it back to normal.
2018-10-09 16:58:11 -07:00
1b8fc1feb7 Allow a slider to set the colorRotation in radians 2018-10-09 16:51:35 -07:00
d3190dd7e7 Add color rotation matrix to Parameters 2018-10-09 11:57:35 -07:00
8f1e1335bd Use the simd types where I can 2018-10-07 19:32:29 -07:00
39001b0ffa Disable Swift 3 @objc inference 2018-10-05 13:50:21 -07:00
5caa763a99 Fix compiler errors after update to Swift 4.2 2018-10-05 13:45:37 -07:00
bc1cff37cc [kit] Remove logging that was slowing things down 2017-08-25 11:21:07 -07:00
0b752984dc [kit] Pass target and feather values into the shaders 2017-08-25 11:19:09 -07:00
6c06aadd37 [kit] Add target and feather properties to the Parameters struct 2017-08-24 18:35:16 -07:00
d730c244a5 [kit] Return a (0,0) point if the radius is too big for the bounds 2017-08-24 18:01:30 -07:00
bed81b2da1 [kit] Shuffle around some logging 2017-08-24 17:59:47 -07:00
88c97d4bf5 [kit] Pass colorStyle through too! 2017-08-16 21:56:20 -07:00
587e616d76 [kit] Implement the notification infrastructure 2017-08-16 21:12:00 -07:00
99fe2147ad [app] Copy the rawValue of the colorStyle enum into the buffer 2017-08-09 08:52:05 -07:00
a7a1cc244b [kit] Fix the build fallout of the previous commit
Oops.
2017-08-08 12:37:35 -07:00
aa7b1ffe9d [kit] Make a bunch of data structures public 2017-08-08 12:36:33 -07:00
c84681559e [app,fw] Pass color information into the shader 2017-08-08 11:52:48 -07:00
48365abee3 [MetaballsKit] Add parameters field to get ready for colors 2017-08-06 11:40:13 -07:00
fdcf62db74 [MetaballsKit] Just replace balls when size changes 2017-08-06 08:25:13 -07:00
357db9a248 [all] Add a ball on click; regenerate the field on right click 2017-08-06 08:24:50 -07:00
a49c370ceb [all] Remove old compute shader code 2017-08-06 07:55:53 -07:00
ddc0938ae4 [MetaballsKit] Comment out the "Populated ball [x]" logging for now... 2017-08-06 07:54:25 -07:00
bb4bdd1568 [MetaballsKit] In order to modify the actual Ball instance, you have to reference it by index each time (I think) 2017-08-06 07:54:15 -07:00
79236d805b [Metaballs] Randomly position and give velocity to balls when they are added
Add 10 balls to the field on start!
2017-08-06 07:48:26 -07:00
8dcd0910f1 [all] It works! 2017-08-05 13:38:46 -07:00
8b4f2d8cc2 [MetaballsKit] Do not compute a texture, just provide buffers for balls and parameter data 2017-08-05 11:10:06 -07:00
5c37010229 [MetaballsKit] Reset the parametersBuffer as needed 2017-08-05 09:30:09 -07:00
d08f4a7e23 [MetaballsKit] Better error handling 2017-08-05 09:29:50 -07:00
0c175acc79 [MetaballsKit] Center balls added to the field 2017-08-05 09:29:13 -07:00
b52e16debe [MetaballsKit] sampleTexture is public 2017-08-05 09:03:55 -07:00
b7a30c46ae [MetaballsKit] Sort out runtime errors 2017-08-04 22:24:15 -07:00
22fbaed88c [MetaballsKit] Fix up didSet responder for Field.size 2017-08-04 21:10:52 -07:00
da5c664ee6 [MetaballsKit] Finish off Metal compute stuff for the simulation 2017-08-04 08:06:33 -07:00
467f9d4123 [MetaballsKit] Get the Metal setup stuff straightened out 2017-08-02 08:08:56 -07:00
3ddc484037 [MetaballsKit] Put a bunch of Metal stuff in the Field class 2017-08-01 19:01:03 -07:00
2e70c76fb0 [MetaballsKit] Make Field a class 2017-08-01 07:54:29 -07:00
fc57f865f2 [MetaballsKit] Make Field.size public and filter balls that lie outside the size when it changed 2017-07-30 15:53:10 -07:00
0dd6604fce [MetaballsKit] Make Field initializer public 2017-07-30 14:47:59 -07:00
440ed1b3f3 Rough implementation of the metaballs simulation in MetaballsKit 2017-07-30 14:29:58 -07:00