Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2006, 2:03:02 AM (19 years ago)
Author:
patrick
Message:

network: skybox is now fixed, there is no seam on the border anymore, some more texture work for the stars background

File:
1 edited

Legend:

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

    r6465 r6511  
    260260  glBindTexture(target, texture);
    261261
    262   glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
     262  glTexParameteri(target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
     263  glTexParameteri(target, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
     264
     265  glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR/*_MIPMAP_LINEAR*/);
    263266  glTexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    264267
    265 
    266   glTexParameteri(target, GL_TEXTURE_WRAP_S, GL_REPEAT);
    267   glTexParameteri(target, GL_TEXTURE_WRAP_T, GL_REPEAT);
     268  glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_PRIORITY, this->priority);
     269
    268270
    269271  /* control the mipmap levels */
    270 //   glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MIN_LOD, 5);f
    271 //   glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MAX_LOD, 0);
    272   glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_PRIORITY, this->priority);
     272  glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MIN_LOD, 5);
     273  glTexParameterf(GL_TEXTURE_ENV, GL_TEXTURE_MAX_LOD, 0);
    273274
    274275  /* build the Texture  OpenGL V >= 1.1 */
     
    294295    PRINTF(1)("Error while loading texture (mipmap generation), gluBuild2DMipmaps returned %i\n", errorCode);
    295296
    296   glBindTexture(target, 0);
     297
    297298  return texture;
    298299}
Note: See TracChangeset for help on using the changeset viewer.