PBR Surface (RealityKit)
A surface shader that defines properties for a RealityKit Physically Based Rendering material.
Parameter Types
Parameter descriptions
Base ColorThe base display color of the surface. The color of an object under pure white light.
Emissive ColorThe self-illumination color of the surface. The color the surface displays as if it’s self-lit.
NormalThe normal vector in tangent space. The default is
(0,0,1).RoughnessThe level of roughness of the surface. This value ranges between
0and1.0, with0outputting a perfectly specular surface and1.0indicating maximum roughness. The default is0.5.MetallicIndicates whether a surface is metallic. Set this value to
1for metallic surfaces, and to0for nonmetallic surfaces. The default is0.0.Ambient OcclusionThe degree of ambient lighting that the surface receives. This value simulates soft shadows and subtle shading.
SpecularThe brightness of the specular highlight of the material.
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, the surface is completely transparent. The default 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 turned on or off. The default value is0.0.ClearcoatA second clear reflective layer on the surface. This property produces a glossy finish. The default is
0.0.Clearcoat RoughnessThe level of roughness of the surfaces clearcoat layer. The default is
0.01.Has Premultiplied AlphaA Boolean value to let the node know if input parameters have a premultiplied alpha.
Discussion
The PBR Surface node produces a custom surface based on its input parameters. Connect the output of the PBR Surface node to the Custom Surface output of your material.
Below is an example material that uses only the PBR Surface node to produce a gold-like texture and apply it to a sphere:
See Also
Nodes
Unlit 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)Surface World To View (RealityKit)