Corretion d'un problème de normale dans la fonction addGPUOcto.

Remise dest toits des maison simples enlevés pour le débug.
This commit is contained in:
Yoann 2012-01-12 09:32:39 +01:00
parent 5cd0ea382d
commit 7f12c99bbf
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ bool BatimentQuadMaison::split() {
Vertex toit = (ch[NE] + ch[SE] + ch[SW] + ch[NW]) / 4 + Vertex(0,0,htoit);
addChild(new BatimentQuadBlock(c,ch));
//addChild(new BatimentQuadToit(ch,1));
addChild(new BatimentQuadToit(ch,1));
return true;
}

View File

@ -43,7 +43,7 @@ void Chose::addGPUOcto(Vertex ne, Vertex se, Vertex sw, Vertex nw,
}
void Chose::addGPUOcto(Quad q, Quad qh, unsigned char r, unsigned char g, unsigned char b) {
this->addGPUQuad(q[NE], q[SE], q[SW], q[NW], r, g, b);
this->addGPUQuad(q[SE], q[NE], q[NW], q[SW], r, g, b);
this->addGPUQuad(qh[NE], qh[SE], qh[SW], qh[NW], r, g, b);
for (int i = 0; i < 4; i++)
this->addGPUQuad(q[NE+i], q[SE+i], qh[SE+i], qh[NE+i], r, g, b);