Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 11, 2006, 2:11:16 PM (20 years ago)
Author:
bottac
Message:

Added Class Tile to HeightMap (allows a primitive LOD Implementation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/lib/graphics/importer/texture.cc

    r5863 r6472  
    252252  glBindTexture(GL_TEXTURE_2D, texture);
    253253  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    254   glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
     254  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
    255255  // build the Texture
    256256  glTexImage2D(GL_TEXTURE_2D,
     
    271271                    surface->pixels);
    272272  glBindTexture(GL_TEXTURE_2D, 0);
     273   glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
     274    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
     275
    273276  return texture;
    274277}
Note: See TracChangeset for help on using the changeset viewer.