Stencil shadow drawing?

BlitzMax Forums/BlitzMax OpenGL Programming/Stencil shadow drawing?

Does anyone have any example code to setup the stencil buffer, and draw stencil shadows correctly? I have got the stencil volumes created, and just need to render them now to look like shadows, instead of big solid volumes.