| GradientSkyNodeBackGroundShift Property |
Gets or sets the relative height where the sky color is the average of the
BackColor and the
GroundColor.
Namespace: DigitalRune.Graphics.SceneGraphAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public float BackGroundShift { get; set; }
Public Property BackGroundShift As Single
Get
Set
public:
property float BackGroundShift {
float get ();
void set (float value);
}
member BackGroundShift : float32 with get, set
Property Value
Type:
Single
The relative height where the sky color is the average of the
BackColor and
the
GroundColor, in the range [0, 1]. The default value is 0.5.
Remarks
The sky color opposite to the sun is created by interpolating the BackColor
and the GroundColor. If this value is 0.5, the average color of the gradient
(= average of BackColor and GroundColor) is in the middle. If
this value is less than 0.5, then the average color is shifted up to the horizon. If this
value is greater than 0.5, then the average color is shifted down to the ground.
See Also