[core] support tiles with non-4096 extents

Convert all geometries to the maximum extent supported by our buffers
and then use that constant extent everywhere else.
This commit is contained in:
Ansis Brammanis
2016-01-28 21:41:20 -08:00
parent f1f53c36d0
commit 4e0d1070f6
26 changed files with 93 additions and 37 deletions

View File

@@ -21,7 +21,7 @@ void TransformState::matrixFor(mat4& matrix, const TileID& id, const int8_t z) c
matrix::identity(matrix);
matrix::translate(matrix, matrix, id.x * s, id.y * s, 0);
matrix::scale(matrix, matrix, s / 4096.0f, s / 4096.0f, 1);
matrix::scale(matrix, matrix, s / util::EXTENT, s / util::EXTENT, 1);
}
void TransformState::getProjMatrix(mat4& projMatrix) const {