paysages3d/src/definition/SurfaceMaterial.h
Michaël Lemaire 0058a0a8e3 Switched to RGB material colors
...to avoid otherwise unused HSL conversion, which causes problems
for some RGB values (like Color(1, 0, 0))
2015-08-19 19:14:59 +02:00

37 lines
592 B
C++

#ifndef SURFACEMATERIAL_H
#define SURFACEMATERIAL_H
#include "definition_global.h"
namespace paysages {
namespace definition {
class DEFINITIONSHARED_EXPORT SurfaceMaterial
{
public:
SurfaceMaterial();
SurfaceMaterial(const Color& color);
~SurfaceMaterial();
void setColor(double r, double g, double b, double a);
void save(PackStream* stream) const;
void load(PackStream* stream);
void validate();
public:
Color *base;
double hardness;
double reflection;
double shininess;
double receive_shadows;
};
}
}
#endif // SURFACEMATERIAL_H