Closed timsgardner closed 9 years ago
Can you elaborate on what "acting weird" means?
• Emit takes 2 arguments, in these functions it is called with 1.
• (emit db (db (first (body x))))
and (emit db (db (second (body x))))
often or always returns fipp-y data, with Clojure vectors and so on involved. Calling str
cements them into a string, producing nonsensical glsl code:
(->
{:fragment-shader
{(g/gl-frag-color) (g/aget (g/vec4 0) 1)}}
p/program
:fragment-shader
:glsl
println)
=>
void main(void){(gl_FragColor = [:group "vec4" "(" [:line ""] [:nest 2 ("0.0")] ")"][[:group "int" "(" [:line ""] [:nest 2 ("1.0")] ")"]]);}
(this is with fipp disabled, I don't think that should make a difference)
aget and selector were acting weird, think I fixed them by using fipp-style formatting rather than str