Exemplo n.º 1
0
 public DistrubutionBsdf(MicrofacetDistribution dist,IFresnelTerm f, RgbSpectrum r0)
 {
     //Type = Reflection | Glossy;
     this.R0 = r0;
     this.distr = dist;
     this.fresnel = f;
 }
Exemplo n.º 2
0
 public CanonicalGlassMaterial(RgbSpectrum r, RgbSpectrum s, MediumInfo m)
 {
     Kr = r;
     Kt = s;
     Medium = m;
     fresnel = new FresnelDielectric(1f, m.IoR);
 }
Exemplo n.º 3
0
 public DistributionBsdf(MicrofacetDistribution dist,IFresnelTerm f, RgbSpectrum r0)
 {
     this.R0 = r0;
     this.distr = 
         //dist;
     new Anisotropic(50f, 10f);
     this.fresnel = f;
 }
Exemplo n.º 4
0
 public DistributionBsdf(float e, RgbSpectrum r0, IFresnelTerm frenel) : this(new BlinnDistribution(e), frenel, r0) { }
Exemplo n.º 5
0
 public MicrofacetBxDF(ref RgbSpectrum reflectance,
                IFresnelTerm f,
                MicrofacetDistribution d)
     : base(BxDFTypes.BSDF_REFLECTION | BxDFTypes.BSDF_GLOSSY)
 {
     R = reflectance;
     distribution = d;
     fresnel = f;
 }
Exemplo n.º 6
0
 public SpecularReflection(IFresnelTerm fr, ref RgbSpectrum r)
     : base(BxDFTypes.BSDF_REFLECTION | BxDFTypes.BSDF_SPECULAR)
 {
     this.fresnel = fr;
     this.R = new RgbSpectrum(r);
 }