kovasb / gamma

glsl shaders made simple
Eclipse Public License 1.0
306 stars 20 forks source link

indicating negation #12

Open kovasb opened 9 years ago

kovasb commented 9 years ago

Want a constructor fn in gamma.api to indicate negation.

Currently we'd have to do something like (g/* -1.0 x)

Whereas we'd want something like (g/neg x)

sgrove commented 9 years ago

Why not special-case single-arg g/- so that it lines up with both clojure/script and glsl?