![]() |
HIRO_DRAW
Computer Graphics Structures library
|
Properties of a simple phong material. More...
Public Member Functions | |
| Material ()=default | |
| Creates a default material. | |
| Material (const cogs::Color3f &col) | |
| Creates a default material with a specified color. | |
Data Fields | |
| cogs::Color3f | color { cogs::color::GRAY70 } |
| Defines material color. | |
| float | specular { 0.5f } |
| Intensity of specular reflection. Should be in range <0,1>. | |
| float | shininess { 60.0f } |
| Phong shininess parameter. Bigger values result in smaller specular reflections. | |
| bool | metallic { false } |
| When a material is metallic, it uses only colored specular component. | |
| uint8_t | __padding0 { 0 } |
| uint16_t | __padding1 { 0 } |
| bool | use_lighting { true } |
| Can be used to disable lighting and colorize the output with unmodified material color. | |
| uint8_t | __padding2 { 0 } |
| uint16_t | __padding3 { 0 } |
Properties of a simple phong material.