class TSkybox

template<bool IsRenderProxy>
Inherits: CoreVariantType<CoreObject, IsRenderProxy>

Templated base class for both render and main thread implementations of a skybox.

Public

Constructors

TSkybox<IsRenderProxy>

TSkybox<IsRenderProxy>() = default

Methods

~TSkybox<IsRenderProxy>

virtual ~TSkybox<IsRenderProxy>() = default

SetBrightness

void SetBrightness(float brightness)

Brightness multiplier that will be applied to skybox values before they're being used.

Allows you to make the skybox more or less bright. Equal to one by default.

GetBrightness

float GetBrightness() const

GetTexture

TextureType GetTexture() const

Determines an environment map to use for sampling skybox radiance.

Must be a cube-map texture, and should ideally contain HDR data.

Protected

Methods

MarkRenderProxyDataDirty

void MarkRenderProxyDataDirty(ComponentDirtyFlag flag = ComponentDirtyFlag::Everything)

Marks the render proxy data as dirty.

This causes the SyncToRenderProxy() method to trigger the next time objects are synced to the render thread.

flags
Flags in case you want to signal that only part of the internal data is dirty. SyncToRenderProxy() will be called regardless and it's up to the implementation to read the flags value if needed.

Fields

mTexture

TextureType mTexture

mBrightness

float mBrightness

Multiplier to apply to evaluated skybox values before using them.