Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Attributes | List of all members
foray::scene::Material Struct Reference

Represents the default gltf pbr material type, capable of representing opaque surfaces with a metallic/roughness model including emission. More...

#include <foray_material.hpp>

Public Attributes

glm::vec4 BaseColorFactor = glm::vec4(0.f, 0.f, 0.f, 1.f)
 
glm::vec3 EmissiveFactor = glm::vec3()
 
fp32_t MetallicFactor = 0.f
 
fp32_t RoughnessFactor = 0.f
 
int32_t BaseColorTextureIndex = -1
 
int32_t MetallicRoughnessTextureIndex = -1
 
int32_t EmissiveTextureIndex = -1
 
int32_t NormalTextureIndex = -1
 
fp32_t IndexOfRefraction = 1.5f
 
fp32_t TransmissionFactor = 0.0f
 
int32_t TransmissionTextureIndex = -1
 
glm::vec3 AttenuationColor = glm::vec3()
 
fp32_t AttenuationDistance
 
MaterialFlags Flags = 0U
 

Detailed Description

Represents the default gltf pbr material type, capable of representing opaque surfaces with a metallic/roughness model including emission.

Member Data Documentation

◆ AttenuationColor

glm::vec3 foray::scene::Material::AttenuationColor = glm::vec3()

◆ AttenuationDistance

fp32_t foray::scene::Material::AttenuationDistance
Initial value:
=
std::numeric_limits<float>::infinity()

◆ BaseColorFactor

glm::vec4 foray::scene::Material::BaseColorFactor = glm::vec4(0.f, 0.f, 0.f, 1.f)

◆ BaseColorTextureIndex

int32_t foray::scene::Material::BaseColorTextureIndex = -1

◆ EmissiveFactor

glm::vec3 foray::scene::Material::EmissiveFactor = glm::vec3()

◆ EmissiveTextureIndex

int32_t foray::scene::Material::EmissiveTextureIndex = -1

◆ Flags

MaterialFlags foray::scene::Material::Flags = 0U

◆ IndexOfRefraction

fp32_t foray::scene::Material::IndexOfRefraction = 1.5f

◆ MetallicFactor

fp32_t foray::scene::Material::MetallicFactor = 0.f

◆ MetallicRoughnessTextureIndex

int32_t foray::scene::Material::MetallicRoughnessTextureIndex = -1

◆ NormalTextureIndex

int32_t foray::scene::Material::NormalTextureIndex = -1

◆ RoughnessFactor

fp32_t foray::scene::Material::RoughnessFactor = 0.f

◆ TransmissionFactor

fp32_t foray::scene::Material::TransmissionFactor = 0.0f

◆ TransmissionTextureIndex

int32_t foray::scene::Material::TransmissionTextureIndex = -1

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