Changeset 8482 in orxonox.OLD for branches/water/src/world_entities/environments/mapped_water.h
- Timestamp:
- Jun 15, 2006, 5:14:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.h
r8477 r8482 3 3 * 4 4 */ 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 5 15 6 16 #ifndef _MAPPED_WATER_H … … 31 41 void tick(float dt); 32 42 33 private:43 // functions to set parameters for the water, usually they're called through loadparam 34 44 void setLightPosition(float x, float y, float z) { this->lightPos = Vector(x,y,z); }; 35 45 void setWaterPos(float x, float y, float z) { this->waterPos = Vector(x,y,z); }; 36 46 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; }; 37 49 38 50 private: … … 54 66 Shader::Uniform* cam_uni; //!< uniform that is used for the camera position 55 67 56 FogEffect* fog;68 //FogEffect* fog; 57 69 58 70 };
Note: See TracChangeset
for help on using the changeset viewer.