29 mesh->doLightCalculations =
false;
54 mesh->material.diffuseColor =
color;
55 mesh->material.specularColor =
color;
class that holds color with 8 bits per channel with 4 channels rgba.
this class represents all drawable entities that has a material and vertices
anything that can be transformed( has modelmatrix )
void setpos(const vec3 &position)
std::vector< drawable< Vertex > * > meshes
void delpos(const vec3 &delta)
void setdiffColor(const color &color)
const vec3 & getpos() const
const color & get_ambient_color() const
void setColor(const vec3 &col)
const color & get_diffuse_color() const
void delpos(const vec3 &delta)
pointLight(const vec3 &pos, const float &intensity, Mesh *mesh=nullptr, const color &diffcol=color(255))
void setpos(const vec3 &newPos)