Skip to reading
GUI Styling, Shaders & Effects

Exact shader and transition structure

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 PDF page

A supported shader object is stored on the element as shader. Its layers array contains objects with preset and intensity:

Code example
{
  "layers": [
    {"preset": "warm", "intensity": 0.45},
    {"preset": "film-grain", "intensity": 0.2}
  ],
  "pixelSize": 4,
  "distortionAmount": 0.01,
  "distortionSpeed": 0.7,
  "colorLevels": 5,
  "edgeStrength": 0.65,
  "tintColor": "#ffffff00"
}

This object is the value of shader, not an entire GUI element. It has a maximum of eight recognized layers. An explicit empty shader object removes the element’s ordinary stack and opts out of a legacy fallback.

A GUI stores openTransition and closeTransition separately. Each can include type, duration, color, direction, origin, intensity, randomPool and avoidImmediateRepeat. Use the Transitions dialog for normal authoring rather than pasting unsupported room effect names into these fields.

Layer order is the order in the list. Shared shader parameters are siblings of layers, not extra fields inside each layer.

Page 68 of 70Permalink
Go to page