46 lines
630 B
C++
46 lines
630 B
C++
#pragma once
|
|
#include "glm/glm.hpp"
|
|
|
|
|
|
|
|
namespace PBR
|
|
{
|
|
class Material
|
|
{
|
|
public:
|
|
Material();
|
|
~Material();
|
|
|
|
struct PushConstBlockMaterial {
|
|
glm::vec4 baseColorFactor;
|
|
glm::vec4 emissiveFactor;
|
|
glm::vec4 diffuseFactor;
|
|
glm::vec4 specularFactor;
|
|
float workflow;
|
|
int colorTextureSet;
|
|
int PhysicalDescriptorTextureSet;
|
|
int normalTextureSet;
|
|
int occlusionTextureSet;
|
|
int emissiveTextureSet;
|
|
float metallicFactor;
|
|
float roughnessFactor;
|
|
float alphaMask;
|
|
float alphaMaskCutoff;
|
|
} pushConstBlockMaterial;
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
Material::Material()
|
|
{
|
|
}
|
|
|
|
Material::~Material()
|
|
{
|
|
}
|
|
} |