Ejemplo n.º 1
0
 public DistributionBsdf(MicrofacetDistribution dist,IFresnelTerm f, RgbSpectrum r0)
 {
     this.R0 = r0;
     this.distr = 
         //dist;
     new Anisotropic(50f, 10f);
     this.fresnel = f;
 }
Ejemplo n.º 2
0
 public FresnelBlend(Spectrum rs, Spectrum rd, float e)
 {
     distribution = 
         //new Anisotropic(10,10);
         //new Anisotropic(e*rs.Average, e*rd.Average);
         new BlinnDistribution(e);
     Rd = rd;
     Rs = rs;
 }
Ejemplo n.º 3
0
 public MicrofacetBxDF(ref RgbSpectrum reflectance,
                IFresnelTerm f,
                MicrofacetDistribution d)
     : base(BxDFTypes.BSDF_REFLECTION | BxDFTypes.BSDF_GLOSSY)
 {
     R = reflectance;
     distribution = d;
     fresnel = f;
 }