Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::loader::GltfPbrMaterial Struct Reference

Common properties/textures tied to a Gltf PBR material. More...

#include <OxygenEngine/scene/loader/gltf.h>

+ Collaboration diagram for oe::scene::loader::GltfPbrMaterial:

Public Attributes

glm::vec4 albedoColor = glm::vec4(1.0)
 
glm::vec3 emissiveColor = glm::vec4(0.0)
 
glm::vec3 rouMetAoColor = glm::vec3(1.0)
 
oe::render::TexturealbedoTexture = nullptr
 
oe::render::TextureemissiveTexture = nullptr
 
oe::render::TexturenormalTexture = nullptr
 
oe::render::TexturerouMetAoTexture = nullptr
 
bool use_pbr = true
 

Detailed Description

Common properties/textures tied to a Gltf PBR material.

Note
if both color and texture are filled for a property, the per-pixel result will be a multiplication of both property

Member Data Documentation

◆ albedoColor

glm::vec4 oe::scene::loader::GltfPbrMaterial::albedoColor = glm::vec4(1.0)

Material's base material color

◆ albedoTexture

oe::render::Texture* oe::scene::loader::GltfPbrMaterial::albedoTexture = nullptr

Material's color texture

◆ emissiveColor

glm::vec3 oe::scene::loader::GltfPbrMaterial::emissiveColor = glm::vec4(0.0)

Material's emissive color

◆ emissiveTexture

oe::render::Texture* oe::scene::loader::GltfPbrMaterial::emissiveTexture = nullptr

Material's emissive texture

◆ normalTexture

oe::render::Texture* oe::scene::loader::GltfPbrMaterial::normalTexture = nullptr

Material's normal map

◆ rouMetAoColor

glm::vec3 oe::scene::loader::GltfPbrMaterial::rouMetAoColor = glm::vec3(1.0)

Material's PBR properties (Roughness, Metalness, Ambient Occlusion)

◆ rouMetAoTexture

oe::render::Texture* oe::scene::loader::GltfPbrMaterial::rouMetAoTexture = nullptr

Material's PBR properties textures


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