Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8241 in orxonox.OLD


Ignore:
Timestamp:
Jun 8, 2006, 1:58:58 PM (18 years ago)
Author:
stefalie
Message:

water: 3 of 4

Location:
branches/water/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/water/src/story_entities/game_world.cc

    r8235 r8241  
    135135  }
    136136  imageSelector->showAll();
    137   imageSelector->setAbsCoor2D(400, 30);
     137  imageSelector->setAbsCoor2D(200, 30);
    138138    OrxGui::GLGuiHandler::getInstance()->activateCursor();
    139139
  • branches/water/src/world_entities/environments/mapped_water.cc

    r8235 r8241  
    7979  unsigned int* pTextureReflection = new unsigned int [this->textureSize * this->textureSize * channels];
    8080  memset(pTextureReflection, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int));
    81   mat.select();
     81  //mat.select();
    8282  glBindTexture(GL_TEXTURE_2D, this->mat.getDiffuseTexture(0));
    8383  glTexImage2D(GL_TEXTURE_2D, 0, channels, this->textureSize, this->textureSize, 0, type, GL_UNSIGNED_INT, pTextureReflection);
    84 
    85 
     84  glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
     85  glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
     86  glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
     87  glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
     88 
     89  unsigned int* pTextureRefraction = new unsigned int [this->textureSize * this->textureSize * channels];
     90  memset(pTextureRefraction, 0, this->textureSize * this->textureSize * channels * sizeof(unsigned int));
     91  glBindTexture(GL_TEXTURE_2D, this->mat.getDiffuseTexture(1));
    8692
    8793
Note: See TracChangeset for help on using the changeset viewer.