Back to the shading language
Still, Bwain| No Comments »Had a relatively long diversion, but it was spent on worthwhile features. PLUS, I got some work out. I got this pic fully rendered and sent to the printers. Tomorrow morning, I’ll pick up a glossy, archival 64×34″ print. Psyched.

The last thing I was working on with the for-loops was fleshing out the equality predicates ‘&&’ and ‘||’. The first implementation had the obvious bool-op-bool definitions, but that doesn’t allow for int-op-int, float-op-float, int-op-bool, etc. They have to handle int, float, double, and bool on each side, so that makes 16 combinations each for ‘&&’ and ‘||’.
I figure if I get a full implementation of for and if-then-else, that’ll be enough to tackle the Ultrafractal emulation and start some real rendering.
The for-loop is almost fully working. Its hard to come up with obscure expression cases that will break it. Another thing I completely forgot are % operators. (int,float,double) % int, float % float, double % double.
Worked through a lot of bugs with the %, && and || operators. for-loops almost done. Should do some experimenting with non-varying boolean expressions, and possibly look into implementing break/continue.




