Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Simple PBR Material Sample
This material graph sample demonstrates creation of a simple PBR material.
The Mesh Opaque PBR material is provided with the following data inputs:
- Albedo — taken from the Albedo texture (Texture 2D node) sampled by the Sample Texture node and multiplied (Multiply node) by the color multiplier provided by the Color parameter node (enabling you to adjust a color value via the Parameters panel in UnigineEditor).
- Metalness — R value taken from the Shading texture using the x port adapter multiplied (Multiply node) by a metalness coefficient provided by the Slider parameter node.
- Roughness — G value taken from the Shading texture using the y port adapter multiplied (Multiply node) by a roughness coefficient provided by the Slider parameter node.
- Normal — taken from the tangent-space Normal map data (Texture 2D node) sampled by the Sample Texture node.
- Occlusion — taken from the Ambient Occlusion texture (Texture 2D node) sampled by the Sample Texture node.
Finally, the data output is passed to the Final node.
The result
Last update:
2023-12-19
Help improve this article
(or select a word/phrase and press Ctrl+Enter)