group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
MeshData Struct Reference

CPU-side mesh data ready for GPU upload. More...

#include <ModelLoader.hpp>

Collaboration diagram for MeshData:
[legend]

Public Attributes

std::vector< ModelVertexvertices
 
std::vector< uint32_t > indices
 
int diffuseTexIndex = -1
 Base colour / albedo texture.
 
int normalTexIndex = -1
 Normal map texture.
 
int metallicRoughnessTexIndex = -1
 Combined metallic-roughness (glTF convention).
 
int aoTexIndex = -1
 Ambient occlusion texture.
 
int emissiveTexIndex = -1
 Emissive texture.
 
MaterialData material
 Scalar PBR factors.
 

Detailed Description

CPU-side mesh data ready for GPU upload.

Member Data Documentation

◆ aoTexIndex

int MeshData::aoTexIndex = -1

Ambient occlusion texture.

◆ diffuseTexIndex

int MeshData::diffuseTexIndex = -1

Base colour / albedo texture.

◆ emissiveTexIndex

int MeshData::emissiveTexIndex = -1

Emissive texture.

◆ indices

std::vector<uint32_t> MeshData::indices

◆ material

MaterialData MeshData::material

Scalar PBR factors.

◆ metallicRoughnessTexIndex

int MeshData::metallicRoughnessTexIndex = -1

Combined metallic-roughness (glTF convention).

◆ normalTexIndex

int MeshData::normalTexIndex = -1

Normal map texture.

◆ vertices

std::vector<ModelVertex> MeshData::vertices

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