Lumberyard
User Guide (Version 1.16)

Working with Shaders and Materials

There is a close relationship between materials, textures and shaders. For a material, you select a shader and then specify the material's properties and attributes such as color, specularity, and texture that are used by the shader for rendering the object. In this way, the shader entirely defines how the object looks. Lumberyard uses physically-based rendering (PBR) shaders, which use real-world physical rules and properties to describe how light interacts with the surface of objects. This means that game object materials look realistic under all lighting conditions. For more information, see Shader Rendering System.

For computer monitors, the sRGB (instead of RGB) color space is used. Using sRGB, you have greater precision for darker colors to which the human eye is more sensitive. sRGB also minimizes any banding artifacts. Always ensure that your monitor is calibrated properly. In sRGB, a 50% mid-gray is not 0.5 or 127 but rather 0.5 raised by the inverse of gamma 2.2, which equals 187 in Adobe Photoshop. For Photoshop, make sure that color management is be set to sRGB and Gray-to-Gray Gamma 2.2. By default, Gray is often set to Dot Gain 20%, which results in a color transformation in the alpha channel. A value of 127 comes into Lumberyard as 104 and cause inconsistencies.

The Material Editor is the primary tool used to create materials, texture mapping, setting opacity and lighting effects, setting shader parameters, vertex deformations, tessellation, and more, as shown below.