vsg: vsg::PhongMaterial Struct Reference

vsg 1.1.8 VulkanSceneGraph library

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
vsg::PhongMaterial Struct Reference

`#include <material.h>`

Collaboration diagram for vsg::PhongMaterial:
[legend]

## 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}

## Detailed Description

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

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

- include/vsg/state/material.h