Set lighting sun color

From AgeofWiki

setsuncolr.jpg

Overview

This effect sets the color levels of the "sun" or primary light source in the environment. It does not affect the luminosity of units, buildings, or objects in the map. Light-colored objects and terrains will however take on the hue of the sun.

XML code (courtesy of Mister SCP and HeavenGames)

  <Effect name="Set Sun Color">
  <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>/**/ sunColor(%R%,%G%,%B%);</Command>
  </Effect>



Managing Effects with Other Environmental Triggers

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

abcomp.jpg

In this example, the primary sun RGB value is 255,153,51 (warm yellow) and gives the map a warmer feel than using a neutral white or gray sun (below).

ang45.jpg

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