vsg
1.1.0
VulkanSceneGraph library
|
#include <material.h>
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} |
PbrMaterial struct for passing material settings, suitable for PBR lighting model, as uniform value to fragment shader Used in conjunction with vsg::createPhysicsBasedRenderingShaderSet().