コード例 #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
ファイル: TLight.cs プロジェクト: zhuzhenping/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;
 }