GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Fog3D::Parameters Struct Reference

Struct of shader parameters representing the fog's appearance. More...

#include <GREM/graphics_3d/Fog3D.hpp>

Public Attributes

vec4 fogStartAndEndDistancesAndSkyFadeMinAndMaxAngleCosines
 Distance from the camera's position to where visible fog starts (X) and to where it reaches its maximum density (Y), followed by the cosines of the angles from fogSkyFadeDirection at which fog starts to appear in the skybox (Z), and where it reaches its maximum density (W).
vec4 fogColorAndMaxDensity
 Color (XYZ) and fraction of maximum density (W) reached by fog at its end distance.
vec3 fogSkyFadeDirection
 Direction in which the fog gradually fades out to reveal the skybox (typically towards the sky).

Detailed Description

Struct of shader parameters representing the fog's appearance.

Member Data Documentation

◆ fogStartAndEndDistancesAndSkyFadeMinAndMaxAngleCosines

vec4 grem::graphics::Fog3D::Parameters::fogStartAndEndDistancesAndSkyFadeMinAndMaxAngleCosines

Distance from the camera's position to where visible fog starts (X) and to where it reaches its maximum density (Y), followed by the cosines of the angles from fogSkyFadeDirection at which fog starts to appear in the skybox (Z), and where it reaches its maximum density (W).

Note
If the max angle cosine is greater than or equal to the min angle cosine, sky fog is disabled.

◆ fogColorAndMaxDensity

vec4 grem::graphics::Fog3D::Parameters::fogColorAndMaxDensity

Color (XYZ) and fraction of maximum density (W) reached by fog at its end distance.

◆ fogSkyFadeDirection

vec3 grem::graphics::Fog3D::Parameters::fogSkyFadeDirection

Direction in which the fog gradually fades out to reveal the skybox (typically towards the sky).


The documentation for this struct was generated from the following file: