Colobot
|
Material of a surface. More...
#include <material.h>
Public Member Functions | |
bool | operator== (const Material &mat) const |
bool | operator!= (const Material &mat) const |
Public Attributes | |
Color | diffuse |
Diffuse color. More... | |
Color | ambient |
Ambient color. More... | |
Color | specular |
Specular color. More... | |
Material of a surface.
This structure was created as analog to DirectX's D3DMATERIAL.
It contains values of 3 material colors: diffuse, ambient and specular. In D3DMATERIAL there are other fields, but they are not used by the graphics engine.
Color Gfx::Material::diffuse |
Diffuse color.
Color Gfx::Material::ambient |
Ambient color.
Color Gfx::Material::specular |
Specular color.