Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Struct Info |
|---|
struct BaseParas Basic parameters required for volumetric fog rendering, including height fog, noise fog, and camera parameters. |
Qualifier and Type |
Field and Description |
|---|---|
float |
density Fog density. The greater the value is, the thicker the fog is. The value range is [0, 1]. |
float |
absorb Light absorption coefficient, that is, the absorption ratio of light in fog. The greater the value is, the more light is absorbed, and the darker the scene is. The value range is [0, 1]. |
float |
scatter Scattering coefficient, that is, the scattering ratio of light in fog. The greater the value is, the more light is scattered to the atmosphere, and the brighter the fog appears. The value range is [0, 1]. |
bool |
noiseFogEnable Noise fog enable. |
float |
noiseFogAmount Amount of noise fog. 0 indicates no noise fog. The value range is [0, 2]. |
float[3] |
noiseFogScale Scales of noise fog in all directions, used to build expansive fog. |
float |
noiseBias Graininess of noise fog. The value range is [0, 1]. |
float[3] |
windSpeed Wind speeds in all directions, to control the flow of noise fog. |
float |
time Plugin execution duration, in seconds, which impacts the motion of noise fog. |
bool |
heightFogEnable Height fog enable. If enabled, makes the fog attenuated exponentially with the height. |
float |
heightFogExponent Height attenuation coefficient of height fog. 0 indicates that there is no height fog. A larger value indicates stronger height attenuation. The value range is [0, 1]. |
float |
heightFogOffset Initial height of height fog. The value range is [0, 10]. |
float |
ambientLightIntensity Intensity of global ambient light. |
float[3] |
ambientLightColor RGB value of the global ambient color. |
float[3] |
camPos Camera position. |
float[3] |
camDir Camera direction. |
float |
nearClip Near clipping plane of the camera. The value range is [0, 1]. |
float |
farClip Far clipping plane of the camera. The value range is [3, 80]. |
float |
withdraw Buffer size. The value range is [0, 10]. The default value 5 is recommended. |
float[3] |
posLB Lower left coordinates of the near clipping plane in the world coordinate system. |
float[3] |
posRB Lower right coordinates of the near clipping plane in the world coordinate system. |
float[3] |
posLT Upper left coordinates of the near clipping plane in the world coordinate system. |
int |
pointLightNum Number of point lights. The value range is [0, 8]. |
int |
spotLightNum Number of spot lights. The value range is [0, 8]. |
int |
tileSize Tile size of a volume pixel (voxel). The smaller the value is, the better the rendering result is, yet the longer the rendering takes. The value range is [8, 16]. The default value 12 is recommended. NOTE tileSize is the size of the tiles at the screen center. Moving outwards, the tile sizes increase gradually with an exponent 1.25. That is, the farther a location is away from the screen center, the fewer the tiles are there. |
int |
volumeDepth Depth of a voxel in the Z direction. The greater the value is, the better the rendering result is, yet the longer the rendering takes. The value range is [16, 64], among which values in [36, 48] are recommended. NOTE Depth units in the Z direction gradually grow with an exponent 1.6 along the camera direction. That is, the farther a location is away from the camera plane, the fewer depth units are there. |