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

Configuration options for shading a mesh instance of a 3D model. More...

#include <GREM/graphics_3d/Model3D.hpp>

Classes

class  Hash
 Hasher for a ShaderConfiguration. More...

Public Member Functions

constexpr bool operator== (const ShaderConfiguration &other) const =default
 Compare this configuration to another for equality.

Public Attributes

MaterialType materialType = MaterialType::METALLIC_ROUGHNESS
 How to interpret the material parameters when shading.
PrimitiveType primitiveType = PrimitiveType::TRIANGLES
 How to form primitives out of consecutive mesh vertices.
FrontFace frontFace = FrontFace::COUNTERCLOCKWISE
 The winding order of front-facing faces.
resource::Model::VertexFlags vertexFlags {}
 Vertex flags used by the shader, see VertexFlag.
resource::Model::FragmentFlags fragmentFlags {}
 Fragment flags used by the shader, see FragmentFlag.

Detailed Description

Configuration options for shading a mesh instance of a 3D model.

Member Function Documentation

◆ operator==()

bool grem::graphics::Model3D::ShaderConfiguration::operator== ( const ShaderConfiguration & other) const
nodiscardconstexprdefault

Compare this configuration to another for equality.

Parameters
otherthe configuration to compare this one to.
Returns
true if the configurations are equal, false otherwise.

Member Data Documentation

◆ materialType

MaterialType grem::graphics::Model3D::ShaderConfiguration::materialType = MaterialType::METALLIC_ROUGHNESS

How to interpret the material parameters when shading.

◆ primitiveType

PrimitiveType grem::graphics::Model3D::ShaderConfiguration::primitiveType = PrimitiveType::TRIANGLES

How to form primitives out of consecutive mesh vertices.

◆ frontFace

FrontFace grem::graphics::Model3D::ShaderConfiguration::frontFace = FrontFace::COUNTERCLOCKWISE

The winding order of front-facing faces.

◆ vertexFlags

resource::Model::VertexFlags grem::graphics::Model3D::ShaderConfiguration::vertexFlags {}

Vertex flags used by the shader, see VertexFlag.

◆ fragmentFlags

resource::Model::FragmentFlags grem::graphics::Model3D::ShaderConfiguration::fragmentFlags {}

Fragment flags used by the shader, see FragmentFlag.


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