GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::gltf::Material Struct Reference

Material appearance of a primitive in a glTF Asset. More...

#include <GREM/core/formats/gltf.hpp>

Classes

struct  Extension
struct  PBRMetallicRoughness
struct  NormalTextureInfo
struct  OcclusionTextureInfo

Public Types

enum class  AlphaMode : uint8_t { ALPHA_OPAQUE , ALPHA_MASK , ALPHA_BLEND }

Public Attributes

PBRMetallicRoughness pbrMetallicRoughness
Optional< NormalTextureInfo > normalTexture
Optional< OcclusionTextureInfo > occlusionTexture
Optional< TextureInfo > emissiveTexture
vec3 emissiveFactor
AlphaMode alphaMode
float alphaCutoff
bool doubleSided
String name
Extension extensions
json::Value extras

Detailed Description

Material appearance of a primitive in a glTF Asset.

See the glTF 2.0 API Reference Guide and specification for more info.

Member Enumeration Documentation

◆ AlphaMode

enum class grem::gltf::Material::AlphaMode : uint8_t
strong
Enumerator
ALPHA_OPAQUE 
ALPHA_MASK 
ALPHA_BLEND 

Member Data Documentation

◆ pbrMetallicRoughness

PBRMetallicRoughness grem::gltf::Material::pbrMetallicRoughness

◆ normalTexture

Optional<NormalTextureInfo> grem::gltf::Material::normalTexture

◆ occlusionTexture

Optional<OcclusionTextureInfo> grem::gltf::Material::occlusionTexture

◆ emissiveTexture

Optional<TextureInfo> grem::gltf::Material::emissiveTexture

◆ emissiveFactor

vec3 grem::gltf::Material::emissiveFactor

◆ alphaMode

AlphaMode grem::gltf::Material::alphaMode

◆ alphaCutoff

float grem::gltf::Material::alphaCutoff

◆ doubleSided

bool grem::gltf::Material::doubleSided

◆ name

String grem::gltf::Material::name

◆ extensions

Extension grem::gltf::Material::extensions

◆ extras

json::Value grem::gltf::Material::extras

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