Simple Subsurface Scattering
VEX node
Generates a color with a non-raytraced subsurface scattering lighting model calculation.
See also: Lambert Diffuse, Oren-Nayar Diffuse, Front Face
This vop uses a subsurface scattering lighting model calculation, similar to Matt Pharr’s, to generate a color. Typically, this lighting model is used in conjunction with another diffuse lighting model such as, Lambert Diffuse or Oren-Nayar Diffuse.
Inputs
|
nN |
The normal vector is used in the selected specular calculation. The normal should be normalized if explicitly connected as an input. The face forward calculation is optional, but it is recommended. Implicitly, the normalized global variable, N, is used. |
|
nI |
The incidence direction ray used in the selected specular calculation, as well as, the face forward calculation. The incident vector should be normalized if explicitly connected as an input. Implicitly, the normalized global variable, I, is used. |
|
Ksss |
This is used to control the intensity of the returned color, independently of the subsurface scattering calculation. |
|
sssClr |
The color used to tint the color returned from the subsurface scatter calculation. |
|
eta |
This is the Index of Refraction used in the subsurface scattering calculation to determine how much the incident ray, I, bends as it pass through the surface. |
|
depth |
This value is used in the subsurface scattering calculation to specify how far the incident ray, I, travels after it pass through the surface, before it “bounces”. |
|
facefwd |
This toggle will change the normal to face forward towards the camera. It is recommended this toggle be on. |
Outputs
|
Color |
The selected specular color highlight calculation: Ksss * sssClr * SSSfunction(nN, nI, eta, depth); |
|
Illum |
Just the color without the multiplication by the intensity or the color. Usually used as an export parameter for extra images planes for use in a subsequent composite. |
|
BSDF |
The PBR subsurface scattering calculation. |
Examples
Usages in other examples
| Example name | Example for | |
|---|---|---|
| FurBallWorkflow |
Fur surface node |