====== ArmA 2 Water Color Config ======
[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]]
**ArmA 2 Terrain Water Color Config**
Correct way is to define a new custom water class with the personal TAG and assign it in your world
class CfgMaterials
{
class Water;
class MYTAG_Water: Water
{
ambient[] = {0.0264,0.03,0.013,0.4};
diffuse[] = {0.13,0.15,0.065,1};
forcedDiffuse[] = {0.0264,0.03,0.013,0};
specular[] = {1.5,1.5,1.5,0};
emmisive[] = {0,0,0,0};
...
class cfgWorlds
{
class CAWorld;
class MYTAG_WorldName: CAWorld//or Utes/Takistan
{
//replace with your custom class
seaMaterial = "#MYTAG_water";
shoreMaterial = "#MYTAG_shore";
shoreFoamMaterial = "#MYTAG_shoreFoam";
shoreWetMaterial = "#MYTAG_shoreWet";
terrainMaterial = "#MYTAG_terrain";
This is direct example from VTE config:
class CfgMaterials
{
class Water;
class VTE_WaterColor: Water
{
// VTE values
ambient[] = {0.27, 0.18, 0.09, 0.8};
diffuse[] = {0.27, 0.18, 0.09, 1.0};
};
class Shore;
class VTE_ShoreColor: Shore
{
// VTE values
ambient[] = {0.27, 0.18, 0.1, 0.5};
diffuse[] = {0.27, 0.18, 0.1, 0.6};
};
class ShoreFoam;
class VTE_ShoreFoamColor: ShoreFoam
{
// VTE values
ambient[] = {0.27, 0.18, 0.1, 0.5};
diffuse[] = {0.27, 0.18, 0.1, 0.6};
};
};
And terrain config:
class CfgWorlds
{
class vte_intro: CAWorld
// brown water color
seaMaterial = "#VTE_WaterColor";
shoreMaterial = "#VTE_ShoreColor";
shoreFoamMaterial = "#VTE_ShoreFoamColor";