While slowly moving toward modernizing the OpenGL used in praxis, I discovered that playing with shaders in OpenGL just requires a few fairly straight-forward function calls, so I’ve added the ability to define and use shaders in praxis.
Working directory: syntax2015continued
dofile("shader.lua") airplane.followcam = false loadBuffer("beachball.lua")
Then hit F1 and move the camera over to one of the beachballs in the sky. You can change the definition of the shader in beachball.lua and hit F1 to see the effect. In addition to beachball.lua, there are 2 other example shaders: toyball.lua and checkerboard.lua. These shaders are the example shaders from the book OpenGL SuperBible, 4th Edition.