Jump to content
Sign in to follow this  
ANZACSAS Steven

Creating custom water colours.

Recommended Posts

Creating different water colours.

Youll find in the worlds config these params.All you need to change the water colour is to edit these lines,Hopefully explained well enough.
        

class WaterExPars : WaterExPars {
            fogDensity = 0.75;     //how clear/dense the fog/coloration under the water surface.
            fogColor[] = {0, 0.078431, 0.039216};    // the colour of the fog under water surface.
            surfaceOpacity = 0.75;      // how clear the water is from above the surface.
            fogColorExtinctionSpeed[] = {0, 0.078431, 0.039216};      // not 100% sure this one.I added the same rgb values here as the water colour
        };

 

class CfgMaterials {
    class Water {
        ambient[] = {0, 0.078431, 0.039216, 0.1};    //deep water colour.
    };
    
    class Shore {
        ambient[] = {0, 0.078431, 0.039216, 0.1};  //colour of the water near the shore line or in shallow rivers.
    };
    
    class ShoreFoam {
        ambient[] = {0, 0.078431, 0.039216, 0.1};  // straight forward this one.the colour of the shore foam.
    };
};

 

 

Bis use different colours for the water,shore and shore foam.Above is a simple example using the same colours for all CfgMaterials water entries.

 

Hope its helpfull.

:)

  • Like 1
  • Thanks 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×