For applications needing fine-tuning, the ShapeDiverMaterial component provides advanced control over all the parameters of the Metalness / Roughness PBR workflow. A complete overview of this approach is out of the scope of our documentation, but you can find more information here. The parameters available in this component are the following:
- Metalness and Roughness: those two parameters have values in the range [0..1] and define how the material handles reflections. Metalness defines how metallic the object looks, while roughness introduces some blur to the reflections that simulate imperfections.
- Opacity: This is a parameter in the [0..1] range (0=transparent, 1=opaque).
- Textures: all of the textures available in the metalness/roughness workflow can be set on ShapeDiver (except the ambient occlusion texture, which will be added in the future). The bitmap textures need to be uploaded in a public online location. Their public URL can then be used as a text parameter input to the ShapeDiverMaterial component. One can define a color texture, a normal texture and a bump map texture. Additionally, the previous parameters can also be defined by textures: instead of a single numerical value, the metalness, roughness and opacity parameters can take text URL inputs defining maps.
- Flat Shading: when this option is activated, there is no smoothing of the object's normals in the viewer, which gives the objects a facetted look.
Finally, after defining any material, it needs to be input in the ShapeDiverDisplayGeometry component to assign it to geometry.