Closed sgrove closed 9 years ago
Looks like this got broken in a recent commit. Need to fix arithmetic-type, probably refactor all the operator inference logic. Definitely need more tests but its rather laborious given the surface area and number of layers...
Just making sure, I'll comment out the arithmetic checks for the time being then.
it also does inference, which is necessary for declaring locals (should they be needed)
opening a new issue on the general topic https://github.com/kovasb/gamma/issues/4 until this is more thorough.
In the spirit of every gl-lib, I'm porting http://learningwebgl.com/blog/?p=28 over to gamma. Ran into an issue with the first example vertex shader:
Which I believe the equivalent gamma is:
But this results in:
Uncaught Error: Arguments to * must have type :int or :float, given :mat4 and :vec4