Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2006, 1:27:38 PM (19 years ago)
Author:
stefalie
Message:

water: cleanup… and hey: the mighty reflection is back :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/water/src/world_entities/environments/mapped_water.cc

    r8617 r8622  
    3232  this->toList(OM_ENVIRON);
    3333
    34   // the NormalMapScale will be overwritten if its also set in the oxw file
     34  // those standardvalues will be overwritten if they're also set in the oxw file
     35  this->setWaterPos(0, 0, 0);
     36  this->setWaterSize(100, 100);
     37  this->setWaterUV(9);
     38  this->setWaterFlow(0.08);
     39  this->setLightPos(0, 10, 0);
     40  this->setWaterAngle(0);
    3541  this->setNormalMapScale(0.25f);
     42
    3643
    3744  if (root != NULL)
     
    178185  LoadParam(root, "waterpos", this, MappedWater, setWaterPos);
    179186  LoadParam(root, "watersize", this, MappedWater, setWaterSize);
    180   LoadParam(root, "lightpos", this, MappedWater, setLightPosition);
     187  LoadParam(root, "lightpos", this, MappedWater, setLightPos);
    181188  LoadParam(root, "wateruv", this, MappedWater, setWaterUV);
    182189  LoadParam(root, "waterflow", this, MappedWater, setWaterFlow);
    183190  LoadParam(root, "normalmapscale", this, MappedWater, setNormalMapScale);
     191  LoadParam(root, "waterangle", this, MappedWater, setWaterAngle);
    184192}
    185193
     
    193201  glPushMatrix();
    194202  glTranslatef(this->waterPos.x ,0 ,this->waterPos.z);
     203  glRotatef(this->waterAngle, 0, 1, 0);
    195204
    196205  mat.select();
Note: See TracChangeset for help on using the changeset viewer.