Source code for some parts of Custom Shaders Patch written in Lua. Feel free to use them for reference, fork them and create your own things, do anything you want.