struct ScreenSpaceReflectionsSettings

Settings that control the screen space reflections effect.

Screen space reflections provide high quality mirror-like reflections at low performance cost. They should be used together with reflection probes as the effects complement each other. As the name implies, the reflections are only limited to geometry drawn on the screen and the system will fall back to refl. probes when screen space data is unavailable. Similarly the system will fall back to refl. probes for rougher (more glossy rather than mirror-like) surfaces. Those surfaces require a higher number of samples to achieve the glossy look, so we instead fall back to refl. probes which are pre-filtered and can be quickly sampled.

Public

Constructors

ScreenSpaceReflectionsSettings

ScreenSpaceReflectionsSettings() = default

Methods

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Fields

Enabled

bool Enabled

Enables or disables the SSR effect.

Quality

u32 Quality

Quality of the SSR effect.

Higher values cast more sample rays, and march those rays are lower increments for better precision. This results in higher quality, as well as a higher performance requirement. Valid range is [0, 4], default is 2.

Intensity

float Intensity

Intensity of the screen space reflections.

Valid range is [0, 1]. Default is 1 (100%).

MaxRoughness

float MaxRoughness

Roughness at which screen space reflections start fading out and become replaced with refl. probes.

Valid range is [0, 1]. Default is 0.8.