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); }
public static StdMaterial CreateAmbient(Color c) { StdMaterial m = Create(); m.Ambient = c; return(m); }
public static StdMaterial CreateSpecular(Color c) { StdMaterial m = Create(); m.Specular = c; return(m); }
public static StdMaterial CreateDiffuse(Color c) { StdMaterial m = Create(); m.Diffuse = c; return(m); }