Set lighting ambient color

From AgeofWiki

setambient.jpg

Overview

This effect sets the color levels of backscattered ambient light in the environment. Light-colored and reflective areas in the terrain textures, and the shade side of buildings and units, will then be tinted with this color. It does not affect the luminosity of units, buildings, or objects in the map.

XML code (courtesy of Mister SCP and HeavenGames)

  <Effect name="Set Terrain Ambient">
  <Param name="R" dispName="R (0-255)" varType="long">0</Param>
  <Param name="G" dispName="G (0-255)" varType="long">0</Param>
  <Param name="B" dispName="B (0-255)" varType="long">0</Param>
  <Command>/**/ terrainAmbient(%R%,%G%,%B%);</Command>
  </Effect>



Managing Effects with Other Environmental Triggers

For best results, primary sun and ambient lighting should complement each other. Using the same or exact opposite hues for primary and ambient colors gives dramatic effects to your map.

abopp.jpg

In this example, the primary sun RGB value is 255,51,51 and the ambient terrain color is 51,51,255. The two settings interact to produce neither a pure red highlight on the snow, nor a pure blue shadow. Instead they blend to produce hues somewhere in between.

Go to the Intermediate_Guide_to_Lighting page to find out more advanced ways of using this and related effects.