Table of Contents

Class Graphics

Namespace
Squiggles.Core.Data
Assembly
SquigglesCommon4X.dll

The singleton which handles graphics options (including window options)

public static class Graphics
Inheritance
Graphics
Inherited Members

Fields

FILE_PATH

private const string FILE_PATH = "graphics.json"

Field Value

string

Properties

Bloom

Whether or not to render bloom (blurring of bright lights.)

public static bool Bloom { get; set; }

Property Value

bool

Brightness

The straight brightness adjustment. Use sparingly

public static float Brightness { get; set; }

Property Value

float

Contrast

The straight Contrast adjustment. Use sparingly

public static float Contrast { get; set; }

Property Value

float

Fullscreen

TGhe current Godot.DisplayServer.WindowMode enum value. It is dynamically defaults to Maxized (Windowed) in a DEBUG context, and fullscreen borderless in a release context. This option can then be modified in the options menu and applies to the window when requested. This enables users to also use fullscreen exclusive which is a method of forcing a synchronization of resolution and frame rate between the display and the program, but basically prevents use of other applications without glitching out on most (all??) operating systems.

public static int Fullscreen { get; set; }

Property Value

int

SDFGI

Whether ot not to render with Signed Distance Field Global Illumination. Basically it does some heavy computations, but it makes your scenes significantly more realistic.

public static bool SDFGI { get; set; }

Property Value

bool

SSAO

Whether or not to render Screen Space Ambient Occlusion (shadows where creases and borders of objects are)

public static bool SSAO { get; set; }

Property Value

bool

SSIL

Whether or not to render Screen Space Indiret Lighting. (Part of the new big render overhaul, it basically improved global illumination by attempted to guess what the indirect lighting contribution would be for the visible pixels)

public static bool SSIL { get; set; }

Property Value

bool

SSR

Whether or not to render Screen Space Reflections (a cheap reflection effect that can only show what is already on screen)

public static bool SSR { get; set; }

Property Value

bool

Saturation

The gay (why they gotta be straight???) saturation adjustment. Use sparingly

public static float Saturation { get; set; }

Property Value

float

TonemapExposure

The amount of exposure to use for the current tonemap. This defaults to 1.0. Higher exposure levels will brighten dark scenes and lower levels will darken bright levels.

public static float TonemapExposure { get; set; }

Property Value

float

Methods

Load()

public static void Load()

MarkGraphicsChanged()

Marks the graphics as changed, which allows this singleton to handle everything that has changed at once instead of after each individual property.

public static void MarkGraphicsChanged()

SaveSettings()

public static void SaveSettings()

Events

OnGraphicsSettingsChanged

An event which triggers whenever the graphics settings are changed. Detected through calls to MarkGraphicsChanged() to prevent severe stuttering when many values are changed

public static event Action OnGraphicsSettingsChanged

Event Type

Action