Example #1
0
        public static StdMaterial Create(Color diffuse, Color ambient, Color specular, float shininess)
        {
            StdMaterial m = Create();

            m.Diffuse   = diffuse;
            m.Ambient   = ambient;
            m.Specular  = specular;
            m.Shininess = shininess;
            return(m);
        }
Example #2
0
 public static StdMaterial CreateAmbient(Color c)
 {
     StdMaterial m = Create(); m.Ambient = c; return(m);
 }
Example #3
0
 public static StdMaterial CreateSpecular(Color c)
 {
     StdMaterial m = Create(); m.Specular = c; return(m);
 }
Example #4
0
 public static StdMaterial CreateDiffuse(Color c)
 {
     StdMaterial m = Create(); m.Diffuse = c; return(m);
 }