Lumberyard
User Guide (Version 1.15)

Setting Material Opacity

An object's opacity refers to its transparency level. Opacity is important when using an alpha channel for transparency.

To set opacity for a material

  1. In Lumberyard Editor, choose Tools, Material Editor.

  2. In the Material Editor, search for or browse to your asset and then select it.

  3. Use the opacity settings to switch between alpha blend and alpha test modes. With the alpha blend mode, you can enable soft and semi-transparent opacity. The alpha test mode is more performant and uses a black and white hard edge from the alpha map.

    Under Opacity Settings, you can adjust the following parameters:

    • Opacity – Set the opacity mode and transparency amount of the material. For the alpha blend mode, set the value between 0 to 99. For the alpha test mode, set the value to 100.

      Example images for opacity
      Opacity = 99, AlphaTest = 0 Opacity = 99, AlphaTest = 10 Opacity = 50, AlphaTest = 0
      Opacity example with Opacity = 99, AlphaTest = 0
      Opacity example with Opacity = 99, AlphaTest = 10
      Opacity example with Opacity = 50, AlphaTest = 0
    • Alpha Test – Bias the edge of the alpha towards black or white. Set the value below 50 to bias toward the white of the alpha map. Set the value above 50 to bias toward the black of the alpha map.

      Example images for alpha test
      Opacity = 100, AlphaTest = 0 Opacity = 100, AlphaTest = 1 Opacity = 90, AlphaTest = 50
      Alpha test example with Opacity = 100, AlphaTest = 0
      Alpha test example with Opacity = 100, AlphaTest = 1
      Alpha test example with Opacity = 90, AlphaTest = 50
    • Additive – Enable to add the material color to the background color. This results in a brighter color for the object.