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; }
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; }