Hair Surface (RealityKit)
A surface shader that defines properties for a RealityKit Hair material.
Parameter Types
Discussion
The Hair Surface node produces a custom surface based on its input parameters. Connect the output of the Hair Surface node to the Custom Surface output of your material.
Parameter descriptions
Base ColorThe base display color of the surface. The color of an object under pure white light.
OpacityThe level of opaqueness of the surface. If the value of this parameter is
1.0, the surface is fully opaque. If the value is less than1.0, the surface appears translucent. If the value is0.0, the surface is completely transparent. The default value is1.0.Opacity ThresholdThe threshold for whether a portion of the surface renders based on its opacity level. A value of
0.0means that no additional masking occurs. If the value is greater than0.0, the node renders only areas of the surface with anOpacityvalue greater than the value of this parameter. This parameter can be enabled or disabled. This parameter can be on or off; the default is off.Ambient OcclusionThe degree of ambient lighting that the surface receives. This value simulates soft shadows and subtle shading. The default value is
1.0.NormalThe normal vector in tangent space. For hair, use a normal that points outward from the hair volume. The default value is
(0,0,1).TangentThe tangent vector in tangent space. For hair, this represents the direction along the hair strand. The default value is
(0,1,0).Primary Specular ColorThe color of the primary specular highlight of the material. The default value is
(1,1,1).Primary SpecularThe brightness of the primary specular highlight of the material. The default value is
0.5.Primary RoughnessThe level of roughness of the primary specular highlight. This value ranges between
0.0and1.0, with lower values producing a sharper highlight and1.0indicating maximum roughness. The default value is0.3.Primary ShiftThe amount of primary specular highlight shift along the direction of the normal. Primary specular highlight typically shifts towards the hair tip. The default value is
0.0.Secondary Specular ColorThe color of the secondary specular highlight of the material. The default value is
(0,0,0).Secondary SpecularThe brightness of the secondary specular highlight of the material. The default value is
0.0.Secondary RoughnessThe level of roughness of the secondary specular highlight. This value ranges between
0.0and1.0, with lower values producing a sharper highlight and1.0indicating maximum roughness. The default value is0.0.Secondary ShiftThe amount of secondary specular highlight shift along the direction of the normal. Secondary specular highlight typically shifts towards the hair root. The default value is
0.0.Backlit ColorThe color of the backlit scattering of the material. The default value is
(0,0,0).Backlit PowerThe falloff exponent of the backlit scattering of the material. Use higher values for hair styles with less volume and lower values for hair styles with more volume, where light scatters through more strands. The default value is
10.0.Backlit ScaleThe intensity of the backlit scattering of the material. This value ranges between
0.0and1.0. The default value is0.0.Shadow DensityThe density of the shadow cast by the material. This value ranges between
0.0and1.0, with1.0producing a fully dense shadow and0.0producing no shadow. Intermediate values require the surface to have varying opacity to take effect. The default value is1.0.Has Premultiplied AlphaA Boolean value that informs the node if input parameters have a premultiplied alpha. The default value is
false.
See Also
Nodes
Unlit Surface (RealityKit)PBR Surface (RealityKit)Occlusion Surface (RealityKit)Shadow Receiving Occlusion Surface (RealityKit)View Direction (RealityKit)Camera Position (RealityKit)Geometry Modifier Model To World (RealityKit)Geometry Modifier World To Model (RealityKit)Geometry Modifier Normal To World (RealityKit)Geometry Modifier Model To View (RealityKit)Geometry Modifier View To Projection (RealityKit)Geometry Modifier Projection To View (RealityKit)Geometry Modifier Vertex ID (RealityKit)Surface Model To World (RealityKit)Surface Model To View (RealityKit)