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 | ambient {1.0f, 1.0f, 1.0f, 1.0f} |
vec4 | diffuse {0.9f, 0.9f, 0.9f, 1.0f} |
vec4 | specular {0.2f, 0.2f, 0.2f, 1.0f} |
vec4 | emissive {0.0f, 0.0f, 0.0f, 0.0f} |
float | shininess {100.0f} |
float | alphaMask {1.0f} |
float | alphaMaskCutoff {0.5f} |
PhongMaterial struct for passing material settings, suitable for phong lighting model, as uniform value to fragment shader Used in conjunction with vsg::createPhongShaderSet().