diff --git a/ogl.cpp b/ogl.cpp index 67b4e82..0eafb41 100644 --- a/ogl.cpp +++ b/ogl.cpp @@ -69,11 +69,13 @@ namespace ogl glTexImage1D(GL_TEXTURE_1D, 0, GL_RGB, tex.width, 0, GL_RGB, GL_UNSIGNED_BYTE, data); glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); png_close_file(&tex); delete data; } - + void initialize(PheromoneMap * phero_map) { glEnable(GL_TEXTURE_1D); glEnable(GL_TEXTURE_2D); diff --git a/pheromone.cpp b/pheromone.cpp index cd26dbb..893cad3 100644 --- a/pheromone.cpp +++ b/pheromone.cpp @@ -36,7 +36,7 @@ #define MAP_POS(X, Y) (data[((X) * m_height) + (Y)]) static const unsigned int MAX_ITERS = 1000; -static const float EVAPORATION_RATE = 0.1f; +static const float EVAPORATION_RATE = 0.05f; const unsigned char MAX_PHERO_INTENSITY = 250; const unsigned char MIN_PHERO_INTENSITY = 0; diff --git a/shaders/color_map.png b/shaders/color_map.png index 98f2d2b..94d3a2f 100644 Binary files a/shaders/color_map.png and b/shaders/color_map.png differ