Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 4:08:57 PM (19 years ago)
Author:
stefalie
Message:

mountain_lake: now its possible to set the strength of the reflection in the oxw file

File:
1 edited

Legend:

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

    r8866 r8867  
    1212  <waterangle>0</waterangle>
    1313  <normalmapscale>0.25</normalmapscale><!-- you won't see a big differnce if you change that -->
    14   <shineSize>128</shineSize><!-- the bigger the value, the smaller the specular reflection point -->
    15   <shineStrength>0.7</shineStrength>
     14  <shinesize>128</shinesize><!-- the bigger the value, the smaller the specular reflection point -->
     15  <shinestrength>0.7</shinestrength>
     16  <reflstrength>1</reflstrength>
    1617  <refraction>0.009</refraction>
    1718  <watercolor>0.1, 0.2, 0.4</watercolor>
     
    5556  void setShineSize(float shine) { this->shineSize = shine; }
    5657  void setShineStrength(float strength) { this->shineStrength = strength; }
     58  void setReflStrength(float strength) { this->reflStrength = strength; }
    5759  void setRefraction(float refraction) { this->refraction = refraction; }
    5860  void setWaterColor(float r, float g, float b) { this->waterColor = Vector(r,g,b); this->newWaterColor = this->waterColor; }
     
    6365  void resetShineSize(float shine);
    6466  void resetShineStrength(float strength);
     67  void resetReflStrength(float strength);
    6568  void resetRefraction(float refraction);
    6669  void resetLightPos(float x, float y, float z);
     
    9699  float               shineSize;              //!< the bigger the value, the smaller the specular reflection point
    97100  float               shineStrength;
     101  float               reflStrength;
    98102  float               refraction;
    99103
     
    107111  Shader::Uniform*    shineStrength_uni;      //!< uniform that is used for the strenght of the specular reflection
    108112  Shader::Uniform*    refr_uni;               //!< uniform that is used for the strength of the refraction
     113  Shader::Uniform*    reflStrength_uni;       //!< uniform that is used for the strength of the reflection
    109114
    110115
Note: See TracChangeset for help on using the changeset viewer.