Apply shader to Craft model?

did anyone manage to implement a glsl shader directly on a craft model using inline code not via Shade? @John provided something earlier in this discussion but it was not clear to me how to use that. @Simeon, @John could you be kind enough to provide the full code for a simple example.

@piinthesky don’t know if you’re still interested, but I’ve adapted a few of the old glass shaders for craft in this thread: https://codea.io/talk/discussion/11767/adapting-old-shaders-for-craft-models