Example #1
0
 public ReflectiveMaterial(FloatColor materialColor, float diffuse, float specular, float exponent,
                           float reflectivity, TextureInfo?texture = null)
 {
     _direct          = new PhongMaterial(materialColor, diffuse, specular, exponent, 1, texture);
     _reflectivity    = reflectivity;
     _reflectionColor = materialColor;
 }
Example #2
0
 public TransparentMaterial(FloatColor materialColor, float diffuse,
                            float exponent, float reflection, float refraction, float transmission)
 {
     _direct       = new PhongMaterial(materialColor, diffuse, 0, exponent);
     _transmission = transmission;
     _baseColor    = materialColor;
     _reflection   = reflection;
     _refraction   = refraction;
 }