topical media & game development 
  
 
 
 
 
  
    
    
  
 lib-unity-demo-sewer-Assets--Scripts-skyBoxLighter.js / js
  public var tex : Cubemap;
  
  function Start () 
  {
          var filter : MeshFilter = gameObject.GetComponent(MeshFilter);
          var mesh : Mesh = filter.mesh;
          var colors : Color[] = mesh.colors;
          
          
          
          for (var i = 0 ; i < colors.Length ; i ++) 
              {
                  var col : Color = colors[i]; 
                  var a : float = (col.b + col.g + col.r) / 3.0;
                  //colors[i] = Color(col.r, col.g, col.b, a * a * glowAmount);
              }
  }
  
  
(C) Æliens 
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. 
In case of other copyright issues, contact the author.