luismrsilva / cg-micromachines

3D version of the first MicroMachines game, made for the Computer Graphics course (2015/2016) at IST, CS BSc
1 stars 0 forks source link

Criar classe Material #41

Closed luismrsilva closed 9 years ago

luismrsilva commented 9 years ago

I suggest having a "base material" that is stored inside GameObject and then allow each object to create additional materials for drawing different parts of their body. Material::draw() calls glMaterial() functions with pre-allocated vectors and stuff, like LightSource does.

zettca commented 9 years ago

Done in 8f695c91ab6460725ccad3da788928b1a7c385dd