Example #1
0
 public Material(float r_index, Point4 albedo, Point color, float spec)
 {
     this.albedo            = albedo;
     this.diffuse_color     = color;
     this.specular_exponent = spec;
     this.refractive_index  = r_index;
 }
Example #2
0
 public float refractive_index;  // показатель преломления
 public Material()
 {
     this.albedo            = new Point4(1, 0, 0, 0);
     this.diffuse_color     = new Point();
     this.specular_exponent = 0;
     this.refractive_index  = 1;
 }