Edit- looking at them closely, they appear to be inspired from bmdview2. Considering most of Whitehole's renderer is inspired from bmdview2 as well, I don't think there'd be much of a change.

Edit2- 'inspired' isn't quite enough. I can clearly recognize bmdview2's code style in 'your' shaders. You even left commented out lines like those warn() calls. I have no problem with copypasting code but you shouldn't claim that code as yours when it's clearly an assemblage of copypasta.

Sorry, I didn't mean exactly that they're mines. It is inspired by the code of Wii Banner Player and bmdviewer2. But it contains more tev stages than yours. So it could make it better by implementing the missing ones.

I see what you mean. Those are color/alpha combination operators, not TEV stages.

Actually, I implemented just what's needed, and made my code throw exceptions on unimplemented cases, like unimplemented operators. So far I haven't encountered exceptions so I haven't bothered implementing more operators.