public Section(TGCVector3 puntoMinimo, TGCVector3 puntoMaximo) { this.puntoMinimo = puntoMinimo; this.puntoMaximo = puntoMaximo; var pos = new TGCVector3((puntoMaximo.X + puntoMinimo.X) / 2, 180, (puntoMaximo.Z + puntoMinimo.Z) / 2); this.light = new Lighting.Light(new ColorValue(255, 255, 255), pos, 10, 0.1f); this.GenerateSubSections(); }
public Portal(TGCVector3 position, TGCMatrix transformationMatrix) { this.position = position; this.transformation = transformationMatrix; float intensity = 50; float attenuation = 80; this.light = new Lighting.Light(new ColorValue(255, 255, 255), position, intensity, attenuation); }
private void AddLight(Lighting.Light light) { lights.Add(light); }