This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
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
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine.RenderEnvironmentPreset Class

The class represents an environment preset. Each preset has settings that can be get/set by using methods of the class.

To get an instance of the class, use the Render.getEnvironmentPreset() method:

Source code (C#)
// get the second environment preset
RenderEnvironmentPreset preset = Render.GetEnvironmentPreset(1);

RenderEnvironmentPreset Class

Properties

float SkyIntensity#

The intensity of the environment sky set for the preset.

float ReflectionIntensity#

The intensity of the environment reflections for the preset. 0 value means no environment reflections for the preset.

float AmbientIntensity#

The intensity of the environment ambient lighting for the preset. 0 value means no environment ambient lighting for the preset. The higher the value, the more ambient lighting affects environment.

string TextureName#

The path to the cubemap defining the environment color set for the preset. This texture is used for imitating landscape reflections and lighting in accordance with the ground mask.

float TextureBlur#

The blur intensity for the environment texture.
Notice
Reflections and ambient lighting aren't blurred.

vec3 TextureRotation#

The Rotation of the environment texture along three axes, in degrees.

vec4 TextureColor#

The environment color multiplier set for the preset. The alpha channel defines visibility of the environment cubemap above scattering. The color multiplier is required when you need to display a sky with a photo texture and dynamic gradients at the same time.

float MoonTextureIntensity#

The intensity multiplier of the Moon texture. It allows increasing/reducing brightness of the Moon.

vec4 MoonTextureColor#

The color multiplier of the Moon texture.

float MoonAngularSize#

The current angular size of the Moon in degrees as seen from the Earth. By default, the size of the Moon is 0.5 degrees.

string MoonTextureName#

The name of the Moon texture.

float SunTextureIntensity#

The intensity multiplier of the Sun texture. It allows increasing/reducing brightness of the Sun.

vec4 SunTextureColor#

The color multiplier of the Sun texture. By default, it is (1,1,1,1).

float SunAngularSize#

The angular size of the Sun in degrees as seen from the Earth. By default, the size of the Sun is 0.5 degrees.

string SunTextureName#

The name of the Sun texture.

string ScatteringLightColorLUTName#

The path to the light color texture (the texture defining the color of the LightWorld for different times of the day).

string ScatteringMieLUTName#

The path to the Mie LUT texture (the texture for setting the color of the light round the sun) set for the preset. The Mie texture is used for both sun and moon.

string ScatteringBaseLUTName#

The path to the base LUT texture (the texture defining the base color of the sky) set for the preset.

float HazeMaxDistance#

The distance starting at which the haze becomes completely solid, so nothing will be seen behind.

float HazeDensity#

The haze density set for the preset.

vec4 HazeColor#

The haze color for the preset.
Notice
This function will return color only if the HAZE_SOLID mode is set via setEnvironmentHazeMode().

float Intensity#

The intensity of the preset. the preset intensity is used to blend the environment preset with the other ones.
Notice
Presets overlay each other: the first preset overlays the zero one, the second overlays the first and the zero ones.

int Num#

The number of the preset.

float HazePhysicalSunColorSaturation#

The Current intensity of the sunlight color's contribution to the haze.

float HazePhysicalSunLightIntensity#

The Current value of intensity of the sunlight impact.

float HazePhysicalAmbientColorSaturation#

The Current value of intensity of the ambient color's contribution to the haze.

float HazePhysicalAmbientLightIntensity#

The Current value of intensity of the ambient lighting impact.

float HazePhysicalHalfFalloffHeight#

The Current height of the haze density gradient.

float HazePhysicalHalfVisibilityDistance#

The Current distance to the boundary at which the visibility comprises 50%, in units.

float HazePhysicalStartHeight#

The Current reference height value, in units.

Texture Texture#

The cubemap defining the environment color set for the preset. This texture is used for imitating landscape reflections and lighting in accordance with the ground mask.

float HazeScatteringMieFresnelPower#

The Current power of the Fresnel effect.

float HazeScatteringMieFrontSideIntensity#

The Falloff of the Fresnel effect for Mie intensity.

float HazeScatteringMieIntensity#

The Current minimum Mie intensity value for geometry-occluded areas in the [0.0f, 1.0f] range.

Members


Last update: 2024-04-19
Build: ()