Esempio n. 1
0
 public Bump(Bump other)
 {
     Source     = other.source();
     GradDisp   = new Vector3D(other.gradDisp());
     BumpFactor = other.bumpFactor();
     Samples    = new Vector3D(other.samples());
 }
Esempio n. 2
0
        public Material()
        {
            AmbientColor      = RGBColor.RGBblack();
            DiffuseColor      = RGBColor.RGBblack();
            SpecularColor     = RGBColor.RGBwhite();
            TransmissionColor = RGBColor.RGBwhite();

            PhongExponent = 8;
            setIOR(1);

            Bump = null;
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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;
            }
        }