kovasb / gamma

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

Assert argument types #24

Open sgrove opened 9 years ago

sgrove commented 9 years ago

Just lost more time than I care to admit to: (g/swizzle :xyz quaternion) where the message was Uncaught Error: Doesn't support name: {:tag :variable, :name "aRotation", :type :vec4, :storage :attribute}.

Gamma asserting types for all of the base operations should make it much more enjoyable to use.