theoritically fixed boundary rendering problem

This commit is contained in:
Anselme FRANÇOIS 2016-05-20 22:53:51 +02:00
parent c9668170af
commit dee7737620
4 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -69,7 +69,7 @@ void MapScene::initDraw()
for(int i=0; i<getWidth(); ++i)
for(int j=0; j<getHeight(); ++j)
m_pixels.push_back(Pix(glm::vec2(i, j), getColor(getPixel(i, j).type)));
m_pixels.push_back(Pix(glm::vec2(i+0.5f, j+0.5f), getColor(getPixel(i, j).type)));
}
void MapScene::draw()