Generic Shader 3D is a template for quick shader development and tweaking in Fusion. We created it to avoid having to generate a full Visual C++ project for every random shader idea that we dream up. The tool provides the user with a large number of Fusion inputs that are passed as Cg parameters: booleans, floats, colors, materials, gradients, lights, and a transformation matrix. The user can also switch between the numbered shaders by adjusting a slider, which is implemented as a literal parameter so that only the selected code branch is compiled.
Once a shader proves to be useful and the required inputs are more or less locked-down, we typically convert it into a full-fledged 3D Fusion tool (expect more of these posted soon, by the way).







