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

Struct of shader fields representing an on-screen decal. More...

#include <GREM/graphics_3d/Renderer3D.hpp>

Public Attributes

mat4 decalMatrix
 Combined view-projection matrix of the decal.
vec4 decalDirectionAndRange
 Direction vector (XYZ) and range (W) of the decal.
vec4 decalBaseColorTextureOffsetAndScale
 Texture offset (XY) and scale (ZW) of the base color map in the decal atlas texture.
vec4 decalNormalTextureOffsetAndScale
 Texture offset (XY) and scale (ZW) of the normal map in the decal atlas texture.
vec4 decalOcclusionRoughnessMetallicTextureOffsetAndScale
 Texture offset (XY) and scale (ZW) of the occlusion-roughness-metallic map in the decal atlas texture.
vec4 decalEmissiveTextureOffsetAndScale
 Texture offset (XY) and scale (ZW) of the emissive map in the decal atlas texture.
vec4 decalBaseColorFactor
 Base color factor.
vec4 decalOcclusionRoughnessMetallicFactorAndNormalScale
 Occlusion strength (X), roughness factor (Y), metallic factor (Z) and normal scale (W).
vec3 decalEmissiveFactor
 Emissive factor.
uint32_t decalModelInstanceIdentifier
 Model identifier that the decal applies to, or the maximum value to apply to all models.

Detailed Description

Struct of shader fields representing an on-screen decal.

Member Data Documentation

◆ decalMatrix

mat4 grem::graphics::Renderer3D::ScreenDecalFields::decalMatrix

Combined view-projection matrix of the decal.

◆ decalDirectionAndRange

vec4 grem::graphics::Renderer3D::ScreenDecalFields::decalDirectionAndRange

Direction vector (XYZ) and range (W) of the decal.

◆ decalBaseColorTextureOffsetAndScale

vec4 grem::graphics::Renderer3D::ScreenDecalFields::decalBaseColorTextureOffsetAndScale

Texture offset (XY) and scale (ZW) of the base color map in the decal atlas texture.

◆ decalNormalTextureOffsetAndScale

vec4 grem::graphics::Renderer3D::ScreenDecalFields::decalNormalTextureOffsetAndScale

Texture offset (XY) and scale (ZW) of the normal map in the decal atlas texture.

◆ decalOcclusionRoughnessMetallicTextureOffsetAndScale

vec4 grem::graphics::Renderer3D::ScreenDecalFields::decalOcclusionRoughnessMetallicTextureOffsetAndScale

Texture offset (XY) and scale (ZW) of the occlusion-roughness-metallic map in the decal atlas texture.

◆ decalEmissiveTextureOffsetAndScale

vec4 grem::graphics::Renderer3D::ScreenDecalFields::decalEmissiveTextureOffsetAndScale

Texture offset (XY) and scale (ZW) of the emissive map in the decal atlas texture.

◆ decalBaseColorFactor

vec4 grem::graphics::Renderer3D::ScreenDecalFields::decalBaseColorFactor

Base color factor.

◆ decalOcclusionRoughnessMetallicFactorAndNormalScale

vec4 grem::graphics::Renderer3D::ScreenDecalFields::decalOcclusionRoughnessMetallicFactorAndNormalScale

Occlusion strength (X), roughness factor (Y), metallic factor (Z) and normal scale (W).

◆ decalEmissiveFactor

vec3 grem::graphics::Renderer3D::ScreenDecalFields::decalEmissiveFactor

Emissive factor.

◆ decalModelInstanceIdentifier

uint32_t grem::graphics::Renderer3D::ScreenDecalFields::decalModelInstanceIdentifier

Model identifier that the decal applies to, or the maximum value to apply to all models.


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