vsg  1.1.0
VulkanSceneGraph library
Public Member Functions | Public Attributes | List of all members
vsg::PbrMaterial Struct Reference

#include <material.h>

Collaboration diagram for vsg::PbrMaterial:
Collaboration graph
[legend]

Public Member Functions

void read (vsg::Input &input)
 
void write (vsg::Output &output) const
 

Public Attributes

vec4 baseColorFactor {1.0f, 1.0f, 1.0f, 1.0f}
 
vec4 emissiveFactor {0.0f, 0.0f, 0.0f, 1.0f}
 
vec4 diffuseFactor {0.9f, 0.9f, 0.9f, 1.0f}
 
vec4 specularFactor {0.2f, 0.2f, 0.2f, 1.0f}
 
float metallicFactor {1.0f}
 
float roughnessFactor {1.0f}
 
float alphaMask {1.0f}
 
float alphaMaskCutoff {0.5f}
 

Detailed Description

PbrMaterial struct for passing material settings, suitable for PBR lighting model, as uniform value to fragment shader Used in conjunction with vsg::createPhysicsBasedRenderingShaderSet().


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