hacks to see stuff

This commit is contained in:
Ansis Brammanis
2015-08-14 13:27:59 +03:00
parent 8d22e2bf01
commit 2535e669e2
3 changed files with 3 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ private:
double angle = 0;
double scale = 1;
double altitude = 1.5;
double pitch = 0;
double pitch = 0.001;
// cache values for spherical mercator math
double Bc = (scale * util::tileSize) / 360;

View File

@@ -117,7 +117,7 @@ struct DepthTest {
static const Type Default;
inline static void Set(const Type& value) {
MBGL_CHECK_ERROR(value ? glEnable(GL_DEPTH_TEST) : glDisable(GL_DEPTH_TEST));
MBGL_CHECK_ERROR(glDisable(GL_DEPTH_TEST));
//MBGL_CHECK_ERROR(glDisable(GL_DEPTH_TEST));
}
};

View File

@@ -4,4 +4,5 @@ uniform mat4 u_matrix;
void main() {
gl_Position = u_matrix * vec4(a_pos, 0, 1);
gl_Position.z = 1.0;
}