----------------------------------------------------
-- Improved Water Shader v0.6 for MGE 3.8 by phal --
----------------------------------------------------

Improves MGE 3.8 water shader to be more realistic. Shader has been redone nearly from scratch aiming at a more realistic water feeling.

Requires shader model 3 graphics card.

-------------------
-- Installation: --
-------------------

Extract the contents of zip file into your Morrowind folder. 

Morrowind Graphics Extender 3.8-SVN rev118 build or newer is required. This shader will *NOT* work with earlier versions.

You can get the latest SVN builds here: 
http://sourceforge.net/project/showfiles.php?group_id=239453&package_id=311044

--------------------
-- Customization: --
--------------------

You can customize the shader file. Simply open the 'Data Files\shaders\distantland\InGame.fx' file with a text editor of your choice. You can change three values in the section beginning with 'SETTINGS' at the beginning of the file. There, the customizable lines are explained. I will explain them here again, anyway:

------------------------
- Blurred reflections: -
------------------------

To enable blurred reflections on the water, edit the line

  #define WATERBLUR xx 

Where 'xx' can either be 0, to disable blur, or 1, to enable blur.

-------------------------------
- Caustic lighting intensity: -
-------------------------------

To change the strength of caustic lighting, edit the line

  #define CAUSTICINT xx 

Here, 'xx' defines the intensity in percent. It can be every number between 1 and 100. You can disable caustic lighting by setting this value to 0.

-----------------------------
- Alternate fogging method: -
-----------------------------

To enable a more realistic, exponential fogging method, edit the line

  #define EXPFOG xx 

Where 'xx' can either be 0, to use the default fog, or 1, to enable the alternate exponential fogging method.

Please note:

When using exponential fog, I recommend increasing the distant land draw distance in MGE gui in the 'Distant Land' tab to about four times the 'Above Water Fog End' range. This will prevent popping in of distant mountains. Distant static range does not need to be increased.
You should however make sure, that the fog range is always higher than the rendering range of distant statics. You may also have to edit the weather settings and increase the fog range for specific weather types.

-----------------
-- Change log: --
-----------------

v0.6:
- Reworked everything
- New water textures
- New depth effects
- Added caustic lighting
- Added new fog calculation method (optional)

v0.5a:
- compatibility with MGE 3.8-SVN rev114
- added support for water heights not equal to zero
- fixed fading out of reflections at night

v0.5:
- water sky color tweaked once again
- reworked calculations for combining reflection and refraction maps to use more realistic formulas
- added optional new water normal map texture
- refraction strength is now water depth dependent

v0.4:
- tweaked shader calculations for better performance
- water color is now independent from MGE's calculated sky color
- added optional distant blur for far away reflections

v0.3:
- tweaked water colors
- added improved shaders for underwater and for interior/pseudo-exterior cells

v0.2a:
- fixed possible crash upon distant land loading

v0.2:
- added more distortion when near water plane
- fog color of reflected landscape improved 

v0.1:
- first release