Esempio n. 1
0
 public void SetShadowSources(double K)
 {
     TLight.TSource[] tsourceArray = new TLight.TSource[2 * this.ParallelBeams.Length];
     for (int index1 = 0; index1 < this.ParallelBeams.Length; ++index1)
     {
         int index2 = 2 * index1;
         tsourceArray[index2] = this.ParallelBeams[index1];
         tsourceArray[index2 + 1].o = -tsourceArray[index2].o;
         tsourceArray[index2 + 1].c = -K * tsourceArray[index2].c;
     }
     this.ParallelBeams = tsourceArray;
 }
Esempio n. 2
0
 public void SetShadowSources(double K)
 {
     TLight.TSource[] tsourceArray = new TLight.TSource[2 * this.ParallelBeams.Length];
     for (int index1 = 0; index1 < this.ParallelBeams.Length; ++index1)
     {
         int index2 = 2 * index1;
         tsourceArray[index2]       = this.ParallelBeams[index1];
         tsourceArray[index2 + 1].o = -tsourceArray[index2].o;
         tsourceArray[index2 + 1].c = -K * tsourceArray[index2].c;
     }
     this.ParallelBeams = tsourceArray;
 }