Changeset 8628 in orxonox.OLD for branches/water/src/world_entities/environments/mapped_water.h
- Timestamp:
- Jun 20, 2006, 2:18:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.h
r8622 r8628 1 1 /*! 2 2 * @file mapped_water.h 3 * 3 * worldentity for flat, cool looking, mapped water 4 4 */ 5 /* example input in .oxw file with the standard values5 /*! example input in .oxw file with the standard values 6 6 <MappedWater> 7 7 <waterpos>0,0,0</waterpos> … … 16 16 17 17 18 19 18 #ifndef _MAPPED_WATER_H 20 19 #define _MAPPED_WATER_H … … 23 22 #include "material.h" 24 23 #include "shader.h" 25 #include "effects/fog_effect.h"26 24 27 25 … … 53 51 54 52 private: 53 void initParams(); 54 void initTextures(); 55 55 void initShaders(); 56 56 57 57 private: 58 Vector waterPos; 59 float xWidth, zWidth; 60 Vector lightPos; 61 float waterAngle; 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 62 62 63 float move; 63 float move; //!< textures coords, speeds, positions for the shaded textures.... 64 64 float move2; 65 float waterUV; 66 float waterFlow; 65 float waterUV; //!< size of the waves 66 float waterFlow; //!< speed of the water 67 67 float normalUV; 68 68 float kNormalMapScale; 69 69 70 int textureSize; 70 int textureSize; //!< height and width of the texture 71 71 Material mat; 72 72 Shader* shader; 73 Shader::Uniform* cam_uni; 73 Shader::Uniform* cam_uni; //!< uniform that is used for the camera position 74 74 }; 75 75
Note: See TracChangeset
for help on using the changeset viewer.