Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2006, 12:58:02 PM (19 years ago)
Author:
stefalie
Message:

water: minor cleanup and the waterflow doesnt depend on the framerate anymore

File:
1 edited

Legend:

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

    r8484 r8617  
    4444    void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); };
    4545    void setWaterSize(float x, float z) { this->xWidth = x; this->zWidth = z; };
    46     void setWaterUV(float uv) { this->g_WaterUV = uv; };
    47     void setWaterFlow(float flow) { this->g_WaterFlow = flow; };
     46    void setWaterUV(float uv) { this->waterUV = uv; };
     47    void setWaterFlow(float flow) { this->waterFlow = flow; };
     48    void setNormalMapScale(float scale) { this->kNormalMapScale = scale; };
    4849
    4950  private:
     
    5657
    5758    float               move;                       //!< textures coords, speeds, positions for the shaded textures....
    58     float               move2;                      //!<
    59     float               g_WaterUV;                  //!<
    60     float               g_WaterFlow;                //!<
    61     float               refrUV;                     //!<
    62     float               normalUV;                   //!<
    63     float               kNormalMapScale;            //!<
     59    float               move2;
     60    float               waterUV;                    //!< size of the waves
     61    float               waterFlow;                  //!< speed of the water
     62    float               normalUV;
     63    float               kNormalMapScale;
    6464
    6565    int                 textureSize;                //!< height and width of the texture
     
    6767    Shader*             shader;
    6868    Shader::Uniform*    cam_uni;                    //!< uniform that is used for the camera position
    69 
    70     //FogEffect*          fog;
    71 
    7269};
    7370
    74 #endif  /* _MAPPED_WATER_H */
     71#endif
Note: See TracChangeset for help on using the changeset viewer.