This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

sky_base

A sky_base material is used for the sky objects.

States#

Options#

Background#

Enables a cube map texturing of the sky sphere. This option allows using sky dome environment maps, for example, to create a night sky with stars.

The following values are available:

  • None — a background texture is not used.
  • Single — one background texture is used.
  • Double — two background textures are used.

Clouds#

Specifies if the procedural clouds will be rendered.

Textures#

Clouds Textures#

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

Mask 0#

Mask for the 1st upper cloud layer. The texture is 4-channelled (RGBA).

Mask 1#

Mask for the 2nd lower cloud layer. The texture is 4-channelled (RGBA).

Clouds 01#

Noise texture for the 1st upper cloud layer. The texture is 4-channelled (RGBA).

Clouds 23#

Noise texture for the 2nd lower cloud layer. The texture is 4-channelled (RGBA).

Sky Sphere Color Calculation#

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.

Background Textures#

These textures are present if the Background option selected in the States tab.

Background 0#

A cube map for texturing the sky sphere with a static texture. The texture is 4-channelled (RGBA).

Background 1#

A second cube map for texturing the sky sphere with a static texture. The texture is 4-channelled (RGBA).

Parameters#

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

Transformation Parameters#

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

Sphere#

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 artefacts near the horizon.

Mask 0#

Transformation of the mask texture mask_0.

Mask 1#

Transformation of the mask texture mask_1.

Clouds 0#

First transformation of the cloud texture clouds_01.

Clouds 1#

Second transformation of the cloud texture clouds_01.

Clouds 2#

First transformation of the cloud texture clouds_23.

Clouds 3#

Second transformation of the cloud texture clouds_23.

Clouds Parameters#

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

Color#

Color of the clouds (applied for both clouds layers).

Clouds 01#

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#

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#

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#

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 section of the Parameters tab. Background 0 and Background 1 parameters are present only if Background option is set to Single or Double mode respectively.

Background 0#

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#

Color multiplier for the second background texture.

Last update: 2024-08-16
Build: ()