-
-
Save l1x/32cb6f7f7881cd797d2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(go | |
(let [chans | |
(sequence | |
brushes | |
(comp | |
(map | |
(fn [[name brush]] | |
(if (:texture brush) | |
(load-texture (:texture brush))))) | |
(filter identity))) | |
textures (<! (async/into [] chans))] | |
{:gl gl | |
:driver driver | |
:programs programs | |
:pers pers | |
:textures textures})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment