Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 5:14:35 PM (18 years ago)
Author:
stefalie
Message:

water: general cleanup

File:
1 edited

Legend:

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

    r8477 r8482  
    33 *
    44*/
     5/* example input in .oxw file
     6<MappedWater>
     7  <waterpos>-500,0,-500</waterpos>
     8  <watersize>1000,1000</watersize>
     9  <wateruv>10</wateruv>
     10  <waterflow>0.003</waterflow>
     11  <lightpos>100,150,100</lightpos>
     12</MappedWater> */
     13
     14
    515
    616#ifndef _MAPPED_WATER_H
     
    3141    void tick(float dt);
    3242
    33   private:
     43    // functions to set parameters for the water, usually they're called through loadparam
    3444    void setLightPosition(float x, float y, float z) { this->lightPos = Vector(x,y,z); };
    3545    void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); };
    3646    void setWaterSize(float x, float z) { this->xWidth = x; this->zWidth = z; };
     47    void setWaterUV(float uv) { this->g_WaterUV = uv; };
     48    void setWaterFlow(float flow) { this->g_WaterFlow = flow; };
    3749
    3850  private:
     
    5466    Shader::Uniform*    cam_uni;                    //!< uniform that is used for the camera position
    5567
    56     FogEffect*          fog;
     68    //FogEffect*          fog;
    5769
    5870};
Note: See TracChangeset for help on using the changeset viewer.