Skip to reading
Shaders, Effects & Layered Scenery

Appendix B. A complete screen-style value

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView PDF page

This is the value object for Change Game Setting → globalSceneShaders. It is not a whole project file. Rooms using the inherited stack receive it; Custom and Disabled room choices continue to override it.

Code example
{
  "layers": [
    {"preset":"psx", "intensity":1.0},
    {"preset":"horror-fog", "intensity":0.65}
  ],
  "psxPixelSize":3,
  "psxColorBits":5,
  "psxDither":1.0,
  "psxJitter":0.0,
  "horrorFogAmount":0.65,
  "horrorFogStart":3.0,
  "horrorFogEnd":13.0,
  "horrorFogColor":"#202b35",
  "horrorFogGrain":0.02,
  "horrorFogVignette":0.25,
  "tintStrength":0.0
}

A simple off value is:

Code example
{"layers":[], "preset":"none"}

For a room-specific value, the corresponding configuration is environment.postProcess on that room, with environment.postProcessOverrideMode set to custom. Use the record proxy example in lesson 71 for the active room refresh.

If an imported shaderAssetId is assigned, that custom shader takes precedence over the built-in layers. Clear it deliberately when returning to built-in presets.

Page 85 of 93Permalink
Go to page