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; }
public SpecularReflection Initialize(Spectrum r, IFresnel fresnel) { R = r; _fresnel = fresnel; return(this); }