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

ApplyLightingState


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:

DelayUpdate


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

Format


public attribute Format → (get,set)

value : TextureFormat

[not-null]
The texture format.

The texture format to use.

Defaults to TextureFormat.A8R8G8B8.

LightMipmap


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.