public FresnelSpecularBRDF(float r, float t, float etaA, float etaB, TransportMode mode) { fresnel = new DielectricFresnel(etaA, etaB); reflection = new SpecularReflectionBRDF(r, fresnel); transmission = new SpecularTransmissionBRDF(t, etaA, etaB, mode); }
public FresnelMaterial(float r, float t, float eta) : base(Color.White) { brdf = new FresnelSpecularBRDF(r, t, 1, eta, TransportMode.Importance); }
public TransmissionMaterial(float t, float eta) : base(Color.White) { brdf = new SpecularTransmissionBRDF(t, 1f, eta, TransportMode.Importance); }
public ReflectionMaterial(float r, float eta) : base(Color.White) { var fresnel = new DielectricFresnel(1, eta); brdf = new SpecularReflectionBRDF(r, fresnel); }
public DiffuseMaterial(Color color, float r) : base(color) { brdf = new LambertianBRDF(r); }