theoritically fixed boundary rendering problem
This commit is contained in:
parent
c9668170af
commit
dee7737620
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -69,7 +69,7 @@ void MapScene::initDraw()
|
|||||||
|
|
||||||
for(int i=0; i<getWidth(); ++i)
|
for(int i=0; i<getWidth(); ++i)
|
||||||
for(int j=0; j<getHeight(); ++j)
|
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()
|
void MapScene::draw()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user