Skip to reading
GUI Styling, Shaders & Effects

11. Apply your first element shader

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

The Element Shader tool applies up to eight built-in effect layers to the selected GUI element. For a first test, use an Image with enough color and detail to make the change obvious.

1. Select the Image element. In the example it is Preview Art(preview_art) inside style_lab.

2. Click Element Shader in the toolbar, or Edit Element Shader Stack in Visual Style.

3. Set Layer 1 to Sepia and Layer 1 Intensity to 0.55.

4. Leave the other layers at None and leave Effect Tint transparent.

5. Click Apply to Selected Element(s), then inspect the image in the designer and in Play.

Figure 24. A single moderate layer makes the first test easy to judge.

A shader is not required for a colored Panel or a rounded Button. Establish those ordinary styles first. The effect should add something specific, not compensate for unclear layout.

Page 31 of 70Permalink
Go to page