7 ms·
Ok, fair enough. I never tried calling my work FRP before since...well, I threw out the functions and embraced glitches. You should have a look at Conal's verti
by seanmcdirmid 13y ago
Ok, fair enough. I never tried calling my work FRP before since...well, I threw out the functions and embraced glitches. You should have a look at Conal's vertigo work if you haven't already. It will give you cool things to do functionally with your GPU support.
http://conal.net/Vertigo/ http://conal.net/Vertigo/
- wheatBread 13y agoAh, cool! I think he told me about this work when we chatted at ICFP last year, but wasn't able to find it. So thanks for the link!
- seanmcdirmid 13y agoOne thing that this work requires is some from of symbolic differentiation. Basically, given some expression e, you have to compute, via a symbolic analysis on e's structure, a derivative for e, e'. e' can then be used to compute normals used for shading, replacing the need for a hand crafted normal map (you can also approximate normals via sampling, but if you have a functional definition of a surface, why not just use derivatives!). This definitely requires some compiler support, but the purity of Elm should be helpful in that regard.