public Bump(Bump other) { Source = other.source(); GradDisp = new Vector3D(other.gradDisp()); BumpFactor = other.bumpFactor(); Samples = new Vector3D(other.samples()); }
public Material() { AmbientColor = RGBColor.RGBblack(); DiffuseColor = RGBColor.RGBblack(); SpecularColor = RGBColor.RGBwhite(); TransmissionColor = RGBColor.RGBwhite(); PhongExponent = 8; setIOR(1); Bump = null; }
public Material(RGBColor ambientColor, RGBColor diffuseColor, RGBColor specularColor, RGBColor transmissionColor, float phongExponent, float IOR) { AmbientColor = ambientColor; DiffuseColor = diffuseColor; SpecularColor = specularColor; TransmissionColor = transmissionColor; PhongExponent = phongExponent; setIOR(IOR); Bump = null; }
public Material(Material other) { AmbientColor = new RGBColor(other.ambientColor()); DiffuseColor = new RGBColor(other.diffuseColor()); SpecularColor = new RGBColor(other.specularColor()); TransmissionColor = new RGBColor(other.transmissionColor()); PhongExponent = other.phongExponent(); setIOR(other.IOR()); if (other.bump() != null) { Bump = new Bump(other.bump()); } else { Bump = null; } }