Changeset 8729 in orxonox.OLD for branches/water/src/world_entities/environments/mapped_water.h
- Timestamp:
- Jun 22, 2006, 3:49:22 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/water/src/world_entities/environments/mapped_water.h
r8719 r8729 12 12 <waterangle>0</waterangle> 13 13 <normalmapscale>0.25</normalmapscale><!-- you won't see a big differnce if you change that --> 14 <shininess>128</shininess><!-- the bigger the value, the smaller the specular reflection point --> 15 <watercolor>0.1, 0.2, 0.4</watercolor> 14 16 </MappedWater> 15 17 */ … … 49 51 void setWaterFlow(float flow) { this->waterFlow = flow; }; 50 52 void setNormalMapScale(float scale) { this->kNormalMapScale = scale; }; 53 void setShininess(float shine) { this->shininess = shine; }; 54 void setWaterColor(float r, float g, float b) { this->waterColor = Vector(r,g,b); }; 51 55 52 56 private: … … 60 64 Vector lightPos; //!< position of the light that is used to render the reflection 61 65 float waterAngle; //!< defines how much the water will be turned around the point waterPos 62 66 Vector waterColor; //!< color of the water 63 67 float move; //!< textures coords, speeds, positions for the shaded textures.... 64 68 float move2; … … 67 71 float normalUV; 68 72 float kNormalMapScale; 73 float shininess; //!< the bigger the value, the smaller the specular reflection point 69 74 70 75 int textureSize; //!< height and width of the texture … … 72 77 Shader* shader; 73 78 Shader::Uniform* cam_uni; //!< uniform that is used for the camera position 79 Shader::Uniform* light_uni; //!< uniform that is used for the light position 80 Shader::Uniform* color_uni; //!< uniform that is used for the watercolor 81 Shader::Uniform* shine_uni; //!< uniform that is used for the specular shininessd of the water 74 82 }; 75 83
Note: See TracChangeset
for help on using the changeset viewer.