This page has been translated automatically.
Программирование
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

sky_base

A sky_base material is used for the sky objects.

Warning
This article is deprecated and will be updated in further UNIGINE updates.

States

In the States tab you can set rendering passes and available options. Enabling some of the states activates additional textures and parameters in the Textures and Parameters tabs respectively.

The states divide into 2 groups: Passes and Options.

Possible values for all the other passes:

GUI name XML name Description
Disabled none Material is not rendered during the pass.
Default default Material is rendered during the pass.

Possible values for a Background option:

GUI name XML name Description
Disabled disabled A background texture is not used.
One texture single One background texture is used.
Two textures double Two background textures are used.

All the other options can be either enabled or disabled by ticking the respective boxes.

The states available for this kind of materials are listed below.

Passes

Passes specify during which rendering pass the material should be rendered. They are modified in the Passes field of the States tab.

GUI name XML name Description
Ambient ambient Ambient rendering pass. Specifies, how the material should be rendered during the Ambient light pass for the opaque objects. The actual opacity or transparency of the material depends solely on the set blending options.
Light world light_world World lights rendering pass. Specifies, if the material should be rendered illuminated by the World light sources during the light and shadows rendering passes.

Options

The following options are set in the Options field of the States tab.

GUI name XML name Description
Background background Enables a cube map texturing of the sky sphere. This option allows to use static sky images, for example, to create a night sky with stars.
Clouds clouds Specifies if the procedural clouds will be rendered.
Soft interaction volume Provides a proper interaction of volumetric clouds with other objects (required if Up sample box is checked). It lessens the clouds color depending on their position relative to the object:
  • If the depth value specifies, that the clouds are in front or behind the object, they are rendered as usual
  • If the depth value between the cloud and the object is small, the color is smoothly interpolated
The depth value can be set using Interaction parameter. This option allows to avoid moire patterns on the objects.

Textures

Clouds Textures

The following textures create textured sky sphere clouds and are modified in the Clouds field of the Textures tab.

GUI name XML name Description Channels
Mask 0 mask_0 Mask for the 1st upper cloud layer. RGBA.
Mask 1 mask_1 Mask for the 2nd lower cloud layer. RGBA.
Clouds 01 clouds_01 Noise texture for the 1st upper cloud layer. RGBA.
Clouds 23 clouds_23 Noise texture for the 2nd lower cloud layer. RGBA.

The color of the textured sky sphere is calculated in three steps:

  1. The upper layer of the clouds, Clouds 01, is computed:
    1. For the first layer, two texture transformations (Clouds 0 and Clouds 1) are summed.
    2. Mask 0 is multiplied by the Threshold 01, modulating the strength of masking.
    3. The mask is subtracted from the textures transformation sum.
    4. The color intensity of the resulting Clouds 01 layer is computed by multiplying it by the Clouds 01 parameter value.
  2. The lower layer of the clouds, Clouds 23, is computed in the same way:
    1. For the second layer, two texture transformations (Clouds 2 and Clouds 3) are summed.
    2. Mask 1 is multiplied by the Threshold 23, modulating the strength of masking.
    3. The mask is subtracted from the textures transformation sum.
    4. The color intensity of the resulting Clouds 23 layer is computed by multiplying it by the Clouds 23 parameter value.
  3. The rendered clouds are adjusted by the Sphere value that controls the influence of atmospheric scattering on the clouds.

Additional Textures

These textures are present depending on the Background option selected.

GUI name XML name Description Channels
Background 0 background_0 A cube map for texturing the sky sphere with a static texture RGBA.
Background 1 background_1 A second cube map for texturing the sky sphere with a static texture RGBA.

Parameters

In the Parameters tab you can set or modify base and additional parameters.

Parameters of different types are set in different ways:

  • expression - vector values can be set either in the field near the parameter or in the dialog window opened when double clicking this field
  • slider - the value can be set either by smoothly moving the slider of the scroll box or manually in the box near the parameter (if required, the value bigger than maximum one for the slider can be set)
  • color - the color can be chosen in the dialog window, activated after double clicking the color field

The parameters available for this kind of materials are listed below.

Transform Parameters

Textures transformation parameters are modified in the Transform field of the Parameters tab.

GUI name XML name Type Description
Sphere sphere_transform expression Transformation of the sky sphere:
  • The first two components scale the sphere by X and Y, respectively. They affect the circle of a horizon
  • The third component scales the sphere by Z, making the sky look higher or lower
  • The fourth component offsets the sphere vertically. Positive values move the sphere down, negative values move it up. This can be used to remove cloud artifacts near the horizon
Volume volume_transform expression Transformation of the volumetric clouds mask.
Noise noise_transform expression Transformation of the volumetric noise texture.
Mask 0 mask_0_transform expression Transformation of the mask texture mask_0.
Mask 1 mask_1_transform expression Transformation of the mask texture mask_1.
Clouds 0 clouds_0_transform expression First transformation of the cloud texture clouds_01.
Clouds 1 clouds_1_transform expression Second transformation of the cloud texture clouds_01.
Clouds 2 clouds_2_transform expression First transformation of the cloud texture clouds_23.
Clouds 3 clouds_3_transform expression Second transformation of the cloud texture clouds_23.

Volume Parameters

Volume parameters control the appearance of volumetric clouds. They are modified in the Transform field of the Parameters tab.

GUI name XML name Type Description
Color 0 volume_color_0 color Volume color of the volumetric clouds
Color 1 volume_color_1 color Shadowed volume color of the volumetric clouds
Multiplier slider volume_01_scale Color multiplier for the volumetric clouds:
  • Decreasing the value results in dark and unsaturated color
  • Increasing the value results in light and very saturated color
Scattering slider volume_scattering Coefficient controlling the influence of atmospheric scattering on the volumetric clouds:
  • Decreasing the value results in clouds disappearing close to the camera
  • Increasing the value results in clouds spread far towards the horizon
Turbulence slider volume_turbulence The size of noise applied to the volumetric clouds:
  • 0.1 is a neutral value
  • Higher values result in grainy, whipped and rough clouds
  • Lower values result in soft and solid clouds

Clouds Parameters

Clouds parameters control the appearance of textured sphere clouds. They are modified in the Clouds field of the Parameters tab.

GUI name XML name Type Description
Clouds 01 clouds_01_scale slider Color intensity of the first cloud layer:
  • Decreasing the value results in cloud color fading
  • Increasing the value results in cloud color intensification
Clouds 23 clouds_23_scale slider Color intensity of the second cloud layer:
  • Decreasing the value results in cloud color fading
  • Increasing the value results in cloud color intensification
Threshold 01 clouds_01_threshold slider Coefficient modulating the strength of masking of the first mask:
  • Decreasing the value determines a weakened attenuation by the mask and abundant clouds
  • Increasing the value determines an intensive attenuation by the mask and sparse clouds
Threshold 23 clouds_23_threshold slider Coefficient modulating the strength of masking of the second mask:
  • Decreasing the value determines a weakened attenuation by the mask and abundant clouds
  • Increasing the value determines an intensive attenuation by the mask and sparse clouds

Sphere Parameters

Sphere parameters are modified in the Sphere field of the Parameters tab. Backgroud 0 and Background 1 parameters are present only if Background option is set to One Texture or Two Textures mode respectively.

GUI name XML name Type Description
Scattering sphere_scattering slider Coefficient controlling the influence of atmospheric scattering on the sky sphere clouds:
  • Decreasing the value equals a prominent distant-depending attenuation due to the scattering effect and a soft horizon line
  • Increasing the value equals an insignificant distant-depending attenuation and a hard horizon line
Background 0 background_0_scale slider Color multiplier for the first background texture:
  • Decreasing the value results in dark and unsaturated color
  • Increasing the value results in light and very saturated color
Background 1 background_1_scale slider Color multiplier for the second background texture.

Soft Interaction Parameters

Interaction parameter is present only if Soft interaction option is enabled and is modified in the Soft interaction field of the Parameters tab.

GUI name XML name Type Description
Interaction volume_scale slider Depth factor that controls the volumetric clouds dispersal depending on their position relative to the object (see Volumetric interaction description):
  • The higher the value, the closer objects are veiled by the volumetric clouds, because the close positioned clouds are rendered in full color
  • The lower the value, the further positioned objects are seen clearly even though being inside of volumetric clouds. This happens because nearby clouds are rendered transparent
  • By the value of 0, the depth value is considered to be infinity, and thus there will be no volumetric clouds. The whole cloud volume will be rendered transparent

Shadow Parameters

Shadow parameter controls the appearance of shadows from clouds and is modified in the Shadow field of the Parameters tab.

GUI name XML name Type Description
Multiplier shadow_scale slider Darkness of shadows cast from clouds to the surface beneath:
  • Decreasing the value results provides darker shadows
  • Increasing the value results provides lighter shadows
Last update: 03.07.2017
Build: ()