示例#1
0
文件: TLight.cs 项目: heber/FreeOQ
		public void SetShadowSources(double K)
		{
			TLight.TSource[] tsources = new TLight.TSource[2 * this.ParallelBeams.Length];
			for (int i = 0; i < this.ParallelBeams.Length; ++i)
			{
				int i2 = 2 * i;
				tsources[i2] = this.ParallelBeams[i];
				tsources[i2 + 1].o = -tsources[i2].o;
				tsources[i2 + 1].c = -K * tsources[i2].c;
			}
			this.ParallelBeams = tsources;
		}
示例#2
0
 public void SetShadowSources(double K)
 {
     TLight.TSource[] tsources = new TLight.TSource[2 * this.ParallelBeams.Length];
     for (int i = 0; i < this.ParallelBeams.Length; ++i)
     {
         int i2 = 2 * i;
         tsources[i2]       = this.ParallelBeams[i];
         tsources[i2 + 1].o = -tsources[i2].o;
         tsources[i2 + 1].c = -K * tsources[i2].c;
     }
     this.ParallelBeams = tsources;
 }