//public RgbSpectrum Sample_f(ref Vector wo, out Vector wi, // BxDFType flags = BxDFType.BSDF_ALL, // BxDFType? sampledType = null) //{ //} public void Add(BxDF bxdf) { this.bxdfs.Add(bxdf); }
public static bool MatchesFlags(BxDF obj, BxDFTypes flags) { return (flags & obj.type).Equals(flags) || (flags & obj.type).Equals(obj.type); }