The FXUtils class is a collection of lua functions that aid setting up effects.
adds a texture filter material to an object that supports
matobject and matsurface assignments. Texoffsets and weights should match in length and may not exceed 9. Both contain tables of sizes
up to 4. Texoffsets should be passed in "pixelsize" ie {-1,-1} would be lower left neighboring pixel. Weights reflect
weighting for each color channel. The resulting pixel will be the weighted sum of all contributing pixels. Rectangle or powerof2 textures are
correctly dealt with and approrpriate conversions of texture coordinates are done.
Colorbias is added at the end and be default a table of {0,0,0,0}.
Returns matcontrolids for changing control values later, if needed.
returns table with 6 cameras. Each setup for dynamic cubemap rendering. Order is CubeMap sides 0-5. Local matrices are set and rotation inherition is disabled.