Toon Paint Ambient

 
 
 

Render Tree Usage

Category: Toon

Shader Family: Surface Material

Output: Color

A utility node that encapsulates the ambience function of the Toon Paint material shader.

Name

The shader's name. Enter any name you like, or leave the default.

Ambience

Influences the base color by the scene's global ambience color.

Enable

Switches ambience on or off.

Amount

The amount of influence by the ambience color. A setting of 0 has no effect.

Compositing

Choose from the available transfer modes to specify a compositing method for combining ambience with the specified base color. The following modes are available:

  • Normal. This is the default. It simply takes the foreground.

  • Add. The foreground is added to the background. Thus, no foreground will be visible if the foreground is black. This is useful for compositing such that the foreground appears to glow.

  • Multiply. Multiplies the foreground by the background. The result is always a color darker than either original foreground or background, much like the result of two overhead transparencies stacked and projected from a single projector.

  • Screen. The inverses of the two color values are multiplied. The result is a foreground brighter than either the original foreground or background.

  • Overlay. Either multiplies or screens, depending on the value of the background underneath. The overall result is that the background is not replaced by the foreground, but is mixed with it, while weighted by the value of the original background.

  • Lighten. Compares the values of the foreground and background and chooses the lighter of the two. The overall result is that the foreground can never do anything except make the background lighter.

  • Darken. Compares the values of the foreground and background and chooses the darker of the two. The overall result is that the foreground can never do anything except make the background darker.

  • Difference. The foreground is subtracted from the background, producing an inverted color effect.

  • Hue. Uses the luminance and saturation of the background and the hue of the foreground.

  • Saturation. Uses the hue and luminance of the background and the saturation of the foreground.

  • Value. Uses the hue and saturation of the background and the luminance (value) of the foreground.

  • Soft Light. If the value of the foreground is greater/less than 50% gray, the underlying background is lightened/darkened by the foreground. This is similar to shining a diffuse light on the image.

  • Hard Light. If the value of the foreground is greater/less than 50% gray, the background is screened/multiplied by the foreground. This is similar to shining a harsh light on the image.

  • Exclusion. Similar (though not identical) to Difference mode.

Shadows Only

Ambience is applied only to those regions of a surface in shadow (hidden from all light sources).

Base

This is the base surface color upon which the ambience color is painted.

Color

The surface is first painted a base color (like an undercoat of primer) before ambience is applied.

Render Tree Usage

You can use this shader to provide an additional layer of control over a Toon-shaded object's ambient component. You can also connect it directly to the material node if you only need a simple base color with the ambience value.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License