EnvironmentMapResource

Description

sealed class Tinman.Engine.Components.EnvironmentMapResource

Wraps the graphics resources of an IEnvironmentMap instance.

The properties of the ILightProvider interface will return the values of the owning IEnvironmentMap, at the time the cubemap environment texture (see Texture) has been computed.

Public / Methods

Apply​Lighting​State


public method ApplyLightingState → (1)

parameters in : LightingParameters

[not-null]
The state object to use.

Applies the render state for the given environment map.

The following state variables are set:

Delay​Update


public method DelayUpdate → (1)

seconds in : float32

[>=0]
The delay, in seconds.

Delays the automatic computation of higher environment map resolutions for the given amount of time.

The next automatic computation will not occur before the given time span has elapsed.

Public / Attributes

Is​Busy


public attribute IsBusy → (get)

value : bool

true if there are background tasks running,
false if there are no background tasks.

Are there pending background tasks for computing the environment texture?

Light​Mipmap


public attribute LightMipmap → (get)

value : float32

[>=0]
The mipmap level.

Computes the mipmap level to use for sampling the diffuse light color.

Size


public attribute Size → (get,set)

value : int32

[pow2]
The texture size.

The cubemap texture size.

Defaults to 256.

Texture


public attribute Texture → (get)

value : ITextureCube

The cubemap texture or null if not yet available.

The environment texture.