Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2006, 2:18:30 PM (19 years ago)
Author:
stefalie
Message:

water: cleanup and waste of time, but i got nothing better to do ;-)

File:
1 edited

Legend:

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

    r8622 r8628  
    11/*!
    22 * @file mapped_water.h
    3  *
     3 *  worldentity for flat, cool looking, mapped water
    44*/
    5 /* example input in .oxw file with the standard values
     5/*! example input in .oxw file with the standard values
    66<MappedWater>
    77  <waterpos>0,0,0</waterpos>
     
    1616
    1717
    18 
    1918#ifndef _MAPPED_WATER_H
    2019#define _MAPPED_WATER_H
     
    2322#include "material.h"
    2423#include "shader.h"
    25 #include "effects/fog_effect.h"
    2624
    2725
     
    5351
    5452  private:
     53    void initParams();
     54    void initTextures();
    5555    void initShaders();
    5656
    5757  private:
    58     Vector              waterPos;                   //!< position of the water
    59     float               xWidth, zWidth;             //!< size of the water quad
    60     Vector              lightPos;                   //!< position of the light that is used to render the reflection
    61     float               waterAngle;                 //!< defines how much the water will be turned around the point waterPos
     58    Vector              waterPos;               //!< position of the water
     59    float               xWidth, zWidth;         //!< size of the water quad
     60    Vector              lightPos;               //!< position of the light that is used to render the reflection
     61    float               waterAngle;             //!< defines how much the water will be turned around the point waterPos
    6262
    63     float               move;                       //!< textures coords, speeds, positions for the shaded textures....
     63    float               move;                   //!< textures coords, speeds, positions for the shaded textures....
    6464    float               move2;
    65     float               waterUV;                    //!< size of the waves
    66     float               waterFlow;                  //!< speed of the water
     65    float               waterUV;                //!< size of the waves
     66    float               waterFlow;              //!< speed of the water
    6767    float               normalUV;
    6868    float               kNormalMapScale;
    6969
    70     int                 textureSize;                //!< height and width of the texture
     70    int                 textureSize;            //!< height and width of the texture
    7171    Material            mat;
    7272    Shader*             shader;
    73     Shader::Uniform*    cam_uni;                    //!< uniform that is used for the camera position
     73    Shader::Uniform*    cam_uni;                //!< uniform that is used for the camera position
    7474};
    7575
Note: See TracChangeset for help on using the changeset viewer.