Example #1
0
 public Microfacet(Spectrum reflectance, IFresnel fresnel, IMicrofacetDistribution distribution)
     : base(BxDFType.BSDF_REFLECTION | BxDFType.BSDF_GLOSSY)
 {
     R = new Spectrum (reflectance.c[0], reflectance.c[1], reflectance.c[2]);
     Fresnel = fresnel;
     Distribution = distribution;
 }
Example #2
0
 public SpecularReflection Initialize(Spectrum r, IFresnel fresnel)
 {
     R        = r;
     _fresnel = fresnel;
     return(this);
 }