![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
#include <PhongMaterial.hpp>
Public Member Functions | |
SIV3D_NODISCARD_CXX20 | PhongMaterial ()=default |
constexpr SIV3D_NODISCARD_CXX20 | PhongMaterial (const ColorF &_diffuseColor, HasDiffuseTexture _hasDiffuseTexture=HasDiffuseTexture::No) |
SIV3D_NODISCARD_CXX20 | PhongMaterial (const Material &material, HasDiffuseTexture _hasDiffuseTexture=HasDiffuseTexture::No) |
Public Attributes | |
ColorF | amibientColor = ColorF{ 1.0 } |
ColorF | diffuseColor = ColorF{ 1.0 } |
ColorF | specularColor = ColorF{ 0.0 } |
ColorF | emissionColor = ColorF{ 0.0 } |
double | shininess = 128.0 |
bool | hasDiffuseTexture = false |
|
default |
|
constexpr |
SIV3D_NODISCARD_CXX20 s3d::PhongMaterial::PhongMaterial | ( | const Material & | material, |
HasDiffuseTexture | _hasDiffuseTexture = HasDiffuseTexture::No |
||
) |
bool s3d::PhongMaterial::hasDiffuseTexture = false |
double s3d::PhongMaterial::shininess = 128.0 |