Gooch Shader

From C4 Engine Wiki

Jump to: navigation, search

A basic Gooch Shader can be implemented like this:

Click to view full resolution.
Click to view full resolution.


For runtime efficiency, the interpolator (t) is not divided by two, which means its range is 0.0 - 2.0. Therefore, the colors should be cut to half the brightness you want. For example, if you want a pure white for the warm color, this would normally be 255, 255, 255, but the values to set in the constant color node should instead be 127, 127, 127.

Note that this type of shader does not play well with self-shadowing, so any geometry using it should have shadow casting switched off.

Personal tools