Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 2:51:54 PM (19 years ago)
Author:
stefalie
Message:

water: works fine so far…

File:
1 edited

Legend:

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

    r8037 r8467  
    3232  private:
    3333    void setLightPosition(float x, float y, float z) { this->lightPos = Vector(x,y,z); };
    34     void setHeight(float height);
     34    void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); };
    3535
    3636  private:
    37     float               waterHeight;                //!< y-coord of the Water
     37    Vector              waterPos;                   //!< position of the water
     38    Vector              lightPos;                   //!< position of the light that is used to render the reflection
    3839
    3940    float               move;                       //!< textures coords, speeds, positions for the shaded textures....
     
    4546    float               kNormalMapScale;            //!<
    4647
    47     int                 textureSize;                //!< size of the texture
    48     Vector              lightPos;
     48    int                 textureSize;                //!< height and width of the texture
    4949    Material            mat;
    5050    Shader*             shader;
    51     Shader::Uniform*    cam_uni;                        //!< uniform that is used for the camera position
     51    Shader::Uniform*    cam_uni;                    //!< uniform that is used for the camera position
    5252
    5353};
Note: See TracChangeset for help on using the changeset viewer.