As you know I have been coding an opengl engine in blitzmax, well I got stuck on something so decided to see if I could get GLSL shaders to work in bmax. Sfter hunting for information on shaders and how to use them in opengl I tired for several hours to work out first if bmax had all the calls available, which it does, I then spent several more hours learning how to call them in the right order with various degrees of success. Then I struggled on some more trying to work out how to get the shader code into the shaders, getting it in the right format proved more of a challenge than everything else, but finally life appeared on my screen

So here is a test.exe which shows that bmax can do shaders and that I managed to get one into it, it was hard work and its rather ugly code and I have no idea if I am cleaning up after myself when you exit correctly SO it might have a memory leak, but it should be right

The actually vertex and fragment shader code is from an example I got off the net since I have never coded a shader, there included in the archive since i could not get the code to compile if I added them to the exe, something else to sort out at some point
