コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void AddLight(Lighting.Light light)
 {
     lights.Add(light);
 }