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

Struct of shader fields representing an on-screen light source. More...

#include <GREM/graphics_3d/Renderer3D.hpp>

Public Attributes

vec4 lightDirectionAndRange
 Direction (XYZ) vector and maximum range (W) of the light.
vec4 lightColorAndIntensity
 Color (XYZ) and intensity factor (W) of the light.
vec4 lightPositionAndType
 Position (XYZ) and type index (W) of the light.
vec4 lightConeCosinesAndShadowMapIndexAndShadowMatrixIndex
 Cosine of the inner (X) and outer (Y) cone angles, as well as the shadow map index (Z) and shadow matrix index (W) of the light.
vec4 lightShadowNearAndFarPlaneDistancesAndShadowMapNormalOffsetBiasConstantAndSlopeFactors
 Distances to the near (X) and far (Y) planes of the light shadow, as well as the constant (Z) and slope-scaled (W) normal offset bias factors to use when sampling the shadow map of the light.

Detailed Description

Struct of shader fields representing an on-screen light source.

Member Data Documentation

◆ lightDirectionAndRange

vec4 grem::graphics::Renderer3D::ScreenLightFields::lightDirectionAndRange

Direction (XYZ) vector and maximum range (W) of the light.

◆ lightColorAndIntensity

vec4 grem::graphics::Renderer3D::ScreenLightFields::lightColorAndIntensity

Color (XYZ) and intensity factor (W) of the light.

◆ lightPositionAndType

vec4 grem::graphics::Renderer3D::ScreenLightFields::lightPositionAndType

Position (XYZ) and type index (W) of the light.

◆ lightConeCosinesAndShadowMapIndexAndShadowMatrixIndex

vec4 grem::graphics::Renderer3D::ScreenLightFields::lightConeCosinesAndShadowMapIndexAndShadowMatrixIndex

Cosine of the inner (X) and outer (Y) cone angles, as well as the shadow map index (Z) and shadow matrix index (W) of the light.

◆ lightShadowNearAndFarPlaneDistancesAndShadowMapNormalOffsetBiasConstantAndSlopeFactors

vec4 grem::graphics::Renderer3D::ScreenLightFields::lightShadowNearAndFarPlaneDistancesAndShadowMapNormalOffsetBiasConstantAndSlopeFactors

Distances to the near (X) and far (Y) planes of the light shadow, as well as the constant (Z) and slope-scaled (W) normal offset bias factors to use when sampling the shadow map of the light.


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