http://www.garagegames.com/community/re ... view/20990
http://www.garagegames.com/community/re ... view/20991
Has a relatively decent writeup. At least on the hlsl side (at time of writing, you'll need additional tweaks and files for the glsl side to support opengl rendering).
subabrain wrote:singleton CustomMaterial( cubicReflector )
shader = cubicReflection;
seems to lack a mapto, which tells the material what entry it's replacing. In addition, it doesn't seem to have any input entries. Those would be sampler["name of variable in your shader file"] = "some texture input" (can be a file or a #textureTarget). Hope that helps.