Skip to reading
GDScript Programming & Godot

SetRetroStyle()

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

Set Retro Rendering Style

Choose the retro screen treatment: none, PSX, N64 or horror fog, with strength and pixel size.

Source table from SetRetroStyle(), page 145
Option key / fieldMeaning and inputDefault
Retro Rendering Style styleChoose: none, psx, n64, horror-fog."psx"
Strength strengthNumber; decimals allowed. Range: 0 to 1.1.0
Retro Pixel Size pixelSizePixel-block size for the retro screen treatment. Range: 1 to 16.3.0

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetRetroStyle({"style": "psx", "strength": 1.0, "pixelSize": 3.0})

In use. Apply a restrained PSX look to a dream, then restore none afterward. These are screen treatments; they are not a replacement for modeling geometry in a particular console style or for physical scene fog.

Page 145 of 378Permalink
Go to page