Go to:
Related nodes. Attributes.
HairTubeShader simulates a thin tube, where the
width of the tube is small enough that local shading effects
can be ignored. The surface normal of the tube is ignored and
all shading derives from the view and the tube direction. The
direction of the tube is assumed to be either the u or the v tangent.
Because the highlights are spread across the entire tube width, the
render of objects like fine hairs do not require as high antialiasing
levels as one would need using shaders like Blinn or Phong.
Aside from the attributes described here, the Anisotropic shader
inherits many attributes from its parents
Reflect and Lambert.
The lambert portion of this shading is defined with translucence and
no diffuse to better handle hair shading.
In the table below, important attribute have their names indicated
in bold in the description column.
This node is MP safe
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
hairTubeShader | reflect | shader/surface:drawdb/shader/surface/hairTubeShader | kHairTubeShader | kBase kNamedObject kDependencyNode kLambert kReflect kHairTubeShader |
Related nodes
lambert, reflect, phongE, phong, blinn, volumeShader, simpleVolumeShader, surfaceShader, displacementShader, layeredShader, useBackground, defaultShaderList, shadingMap
Attributes (23)
colorScale, colorScale_Color, colorScale_ColorB, colorScale_ColorG, colorScale_ColorR, colorScale_Interp, colorScale_Position, scatter, scatterPower, specularPower, specularShift, tangentUCamera, tangentUCameraX, tangentUCameraY, tangentUCameraZ, tangentVCamera, tangentVCameraX, tangentVCameraY, tangentVCameraZ, tubeDirection, uCoord, uvCoord, vCoord
Long name (short name) | Type | Default | Flags |
---|
|
tangentUCamera
(utan )
| float3 | | |
|
| tangentUCameraX
(utnx )
| float | 1.0 | | |
|
| tangentUCameraY
(utny )
| float | 1.0 | | |
|
| tangentUCameraZ
(utnz )
| float | 1.0 | | |
|
|
tangentVCamera
(vtan )
| float3 | | |
|
| tangentVCameraX
(vtnx )
| float | 1.0 | | |
|
| tangentVCameraY
(vtny )
| float | 1.0 | | |
|
| tangentVCameraZ
(vtnz )
| float | 1.0 | | |
|
|
uvCoord
(uv )
| float2 | 0.0, 0.0 | |
|
|
|
|
tubeDirection
(tdr )
| enum | 0 | |
|
|
colorScale
(cls )
| compound | n/a | |
|
| colorScale_Position
(clsp )
| float | 0.0 | | |
|
| colorScale_Color
(clsc )
| float3 | | | |
| colorScale_ColorR
(clscr )
| float | 0.0 | | |
| | colorScale_ColorG
(clscg )
| float | 0.0 | | |
| | colorScale_ColorB
(clscb )
| float | 0.0 | | |
|
|
| colorScale_Interp
(clsi )
| enum | 0 | | |
|
|
specularPower
(sp )
| float | 20.0 | |
|
|
specularShift
(ssh )
| float | 5.0 | |
|
|
scatterPower
(scp )
| float | 5.0 | |
|
|
scatter
(sct )
| float | 0.2 | |
|