Bizaare OpenGL shader problem in extended version.

BlitzMax Forums/MiniB3D Module/Bizaare OpenGL shader problem in extended version.

LT(Posted 2009) [#1]
I know that DirectX has limits when it comes to the number of operations, variables, etc. I assume that OpenGL does too, but I haven't been able to find any good resources that say so.

In any case, I have a shader written for my own variation of Klepto's 0.41 extension of MiniB3D. It is designed to render a model with texture and bump that comes from a normal map; using three lights with specular. It works perfectly, except when I add in vertex colors. Aargh!

Each PART of the shader works fine. If I take out the vertex colors, it looks just as it should. If I keep the vertex colors but remove the last light, it works. The only conclusion that I can draw from this is that there is some limitation in OpenGL that I'm unaware of.

Does this problem ring a bell with anyone out there?

I apologize if this is the wrong forum for this, but it is related to MiniB3D in the sense that I am using it to test.