PxrThinFilm

PxrThinFilm

Computes a thin-film interference effect on six spectral bands.

Input Parameters

Input Color

The color that will be perturbed by the interference effect.

RIB: color inputRGB
Default: 1.0 1.0 1.0

Eta

The index of refraction of the thin film. We assume the exterior medium is air.

RIB: float eta
Default: 1.5

Spread

The index of refraction's amount of variation across the color spectrum.

RIB: float spread
Default: 0.01

Thickness

The thickness of the thin film in nanometers.

RIB: float thickness
Default: 1896.0

Thickness Scale

Connect a pattern here to modulate the thickness. This will multiply the thickness value.

RIB: float thicknessScale
Default: 1.0

Front Only

Compute only interference on front-facing points. By default, both sides are computed.

RIB: int frontOnly
Default: 0

Output Parameters

resultRGB

The color result.

resultR

The R channel from the resultRGB output.

resultG

The G channel from the resultRGB output.

resultB

The B channel from the resultRGB output.