Example #1
0
 public static bool AreEqual(LightSource ls1, LightSource ls2) =>
 ls1.position == ls2.position
 &&
 Color.AreEqual(ls1.color, ls2.color)
 &&
 ls1.power == ls2.power
 &&
 Attenuation.AreEqual(ls1.attenuation, ls2.attenuation);
Example #2
0
 public LightSource(vec3 position, Color color, float power, Attenuation attenuation, bool important)
 {
     name             = null;
     this.position    = position;
     this.color       = color;
     this.power       = power;
     this.attenuation = attenuation;
     this.important   = important;
 }
Example #3
0
 public LightSource(vec3 position, Color color, float power, Attenuation attenuation) : this(position, color, power, attenuation, false)
 {
 }