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

Parameters of a 3D model mesh. More...

#include <GREM/graphics_3d/Model3D.hpp>

Public Attributes

vec4 meshBaseColorFactor
 Base color factor.
vec3 meshOcclusionRoughnessMetallicFactor
 Occlusion strength (X), roughness factor (Y) and metallic factor (Z).
float meshNormalScale
 Normal scale.
vec3 meshEmissiveFactor
 Emissive factor.
float meshAlphaCutoff
 Alpha cutoff value.
float meshIndexOfRefraction
 Index of refraction.
sampler2D meshBaseColorMap
 Base color texture used for diffuse shading.
sampler2D meshOcclusionRoughnessMetallicMap
 ORM texture used for specular shading.
sampler2D meshNormalMap
 Normal texture used for normal mapping.
sampler2D meshEmissiveMap
 Emissive texture used for emissive mapping.
vec2 meshBaseColorMapTextureOffset
 Texture coordinate offset to use when sampling the base color map.
mat2 meshBaseColorMapTextureBasis
 Texture coordinate basis to use when sampling the base color map.
vec2 meshOcclusionRoughnessMetallicMapTextureOffset
 Texture coordinate offset to use when sampling the ORM map.
mat2 meshOcclusionRoughnessMetallicMapTextureBasis
 Texture coordinate basis to use when sampling the ORM map.
vec2 meshNormalMapTextureOffset
 Texture coordinate offset to use when sampling the normal map.
mat2 meshNormalMapTextureBasis
 Texture coordinate basis to use when sampling the normal map.
vec2 meshEmissiveMapTextureOffset
 Texture coordinate offset to use when sampling the emissive map.
mat2 meshEmissiveMapTextureBasis
 Texture coordinate basis to use when sampling the emissive map.
uint32_t meshMorphTargetValueOffset
 Offset of the first morph target in the MorphTargetValueBuffer.
uint32_t meshMorphTargetCount
 Number of morph targets.
uint32_t meshMorphTargetStride
 Size of each morph target, in number of floats.

Detailed Description

Parameters of a 3D model mesh.

Member Data Documentation

◆ meshBaseColorFactor

vec4 grem::graphics::Model3D::Parameters::meshBaseColorFactor

Base color factor.

◆ meshOcclusionRoughnessMetallicFactor

vec3 grem::graphics::Model3D::Parameters::meshOcclusionRoughnessMetallicFactor

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

◆ meshNormalScale

float grem::graphics::Model3D::Parameters::meshNormalScale

Normal scale.

◆ meshEmissiveFactor

vec3 grem::graphics::Model3D::Parameters::meshEmissiveFactor

Emissive factor.

◆ meshAlphaCutoff

float grem::graphics::Model3D::Parameters::meshAlphaCutoff

Alpha cutoff value.

◆ meshIndexOfRefraction

float grem::graphics::Model3D::Parameters::meshIndexOfRefraction

Index of refraction.

◆ meshBaseColorMap

sampler2D grem::graphics::Model3D::Parameters::meshBaseColorMap

Base color texture used for diffuse shading.

◆ meshOcclusionRoughnessMetallicMap

sampler2D grem::graphics::Model3D::Parameters::meshOcclusionRoughnessMetallicMap

ORM texture used for specular shading.

◆ meshNormalMap

sampler2D grem::graphics::Model3D::Parameters::meshNormalMap

Normal texture used for normal mapping.

◆ meshEmissiveMap

sampler2D grem::graphics::Model3D::Parameters::meshEmissiveMap

Emissive texture used for emissive mapping.

◆ meshBaseColorMapTextureOffset

vec2 grem::graphics::Model3D::Parameters::meshBaseColorMapTextureOffset

Texture coordinate offset to use when sampling the base color map.

◆ meshBaseColorMapTextureBasis

mat2 grem::graphics::Model3D::Parameters::meshBaseColorMapTextureBasis

Texture coordinate basis to use when sampling the base color map.

◆ meshOcclusionRoughnessMetallicMapTextureOffset

vec2 grem::graphics::Model3D::Parameters::meshOcclusionRoughnessMetallicMapTextureOffset

Texture coordinate offset to use when sampling the ORM map.

◆ meshOcclusionRoughnessMetallicMapTextureBasis

mat2 grem::graphics::Model3D::Parameters::meshOcclusionRoughnessMetallicMapTextureBasis

Texture coordinate basis to use when sampling the ORM map.

◆ meshNormalMapTextureOffset

vec2 grem::graphics::Model3D::Parameters::meshNormalMapTextureOffset

Texture coordinate offset to use when sampling the normal map.

◆ meshNormalMapTextureBasis

mat2 grem::graphics::Model3D::Parameters::meshNormalMapTextureBasis

Texture coordinate basis to use when sampling the normal map.

◆ meshEmissiveMapTextureOffset

vec2 grem::graphics::Model3D::Parameters::meshEmissiveMapTextureOffset

Texture coordinate offset to use when sampling the emissive map.

◆ meshEmissiveMapTextureBasis

mat2 grem::graphics::Model3D::Parameters::meshEmissiveMapTextureBasis

Texture coordinate basis to use when sampling the emissive map.

◆ meshMorphTargetValueOffset

uint32_t grem::graphics::Model3D::Parameters::meshMorphTargetValueOffset

Offset of the first morph target in the MorphTargetValueBuffer.

◆ meshMorphTargetCount

uint32_t grem::graphics::Model3D::Parameters::meshMorphTargetCount

Number of morph targets.

◆ meshMorphTargetStride

uint32_t grem::graphics::Model3D::Parameters::meshMorphTargetStride

Size of each morph target, in number of floats.


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