LightingGui

Description

sealed class Tinman.AddOns.Components.LightingGui

Full source code is included in the Tinman 3D SDK download.

A GUI component that allows to control lighting settings.

The following default Layout settings are defined for LightingGui objects:

Public / Constants

Label​Altitude


[Localized]
public constant LabelAltitude → ("Altitude":string)

Label for light altitude angle.

Label​Ambient


[Localized]
public constant LabelAmbient → ("Ambient":string)

Label for ambient scale.

Label​Azimuth


[Localized]
public constant LabelAzimuth → ("Azimuth":string)

Label for light azimuth angle.

Label​Directional


[Localized]
public constant LabelDirectional → ("Directional":string)

Label for directional scale.

Label​Exposure


[Localized]
public constant LabelExposure → ("Exposure":string)

Label for exposure.

Label​Hdr​Scale


[Localized]
public constant LabelHdrScale → ("HDR scale":string)

Label for HDR scale.

Label​Lightmap


[Localized]
public constant LabelLightmap → ("Lightmap":string)

Label for choosing the size of the environment lightmap.

Label​Occlusion


[Localized]
public constant LabelOcclusion → ("Occlusion":string)

Label for ambient occlusion strength.

Label​Sun​Size


[Localized]
public constant LabelSunSize → ("Sun size":string)

Label for sun size.

Public / Constructors

Lighting​Gui


public constructor LightingGui → (4)

defaultAltitude opt : int32 = 45

The default light altitude angle, in degrees.

defaultAzimuth opt : int32 = 0

The default light azimuth angle, in degrees.

lightingSizeMin opt : int32 = 256

The minimum configurable size for ILightingContainer.LightingSize.

lightingSizeMax opt : int32 = 256

The maximum configurable size for ILightingContainer.LightingSize.

Creates a new instance of LightingGui.

Public / Attributes

Hemisphere


public attribute Hemisphere → (get,set)

value : bool

true to limit the light altitude to the upper hemisphere,
false to allow both upper and lower hemispheres.

Limit light altitude to upper hemisphere?

Defaults to true.

Lighting


public attribute Lighting → (get,set)

value : ILightingContainer

The ILightingContainer object or null.

The ILightingContainer object to use.