public static Common GenerateLambert(ColorOrTexture diffuse, ColorOrTexture emission, ColorOrTexture ambient, ColorOrTexture reflective, FloatOrParam reflectivity, Transparent transparent, FloatOrParam transparency, FloatOrParam index_of_refraction) { Technique fxTechnique = new Technique(); // add the surface sampler element to the technique to provide blender support if (Collada.CompatibilityToBlender && diffuse != null) { Texture texture = diffuse; fxTechnique.Add(Common.GenerateSurfaceSampler(ref texture, "diffuse_")); } Common.Technique.Lambert fxShader = new Common.Technique.Lambert(diffuse, emission, ambient, reflective, reflectivity, transparent, transparency, index_of_refraction); fxTechnique.item = fxShader; Common fxProfile = new Common(fxTechnique); //fxProfile.technique = fxTechnique; return(fxProfile); }
public Constant(ColorOrTexture emission = null, ColorOrTexture reflective = null, FloatOrParam reflectivity = null, Transparent transparent = null, FloatOrParam transparency = null, FloatOrParam index_of_refraction = null) : base(emission, reflective, reflectivity, transparent, transparency, index_of_refraction) { }
public Lambert(ColorOrTexture diffuse, ColorOrTexture emission = null, ColorOrTexture ambient = null, ColorOrTexture reflective = null, FloatOrParam reflectivity = null, Transparent transparent = null, FloatOrParam transparency = null, FloatOrParam index_of_refraction = null) : base(diffuse, emission, ambient, reflective, reflectivity, transparent, transparency, index_of_refraction) { }
public Blinn(ColorOrTexture diffuse, ColorOrTexture emission = null, ColorOrTexture ambient = null, ColorOrTexture specular = null, FloatOrParam shininess = null, ColorOrTexture reflective = null, FloatOrParam reflectivity = null, Transparent transparent = null, FloatOrParam transparency = null, FloatOrParam index_of_refraction = null) : base(diffuse, emission, ambient, specular, shininess, reflective, reflectivity, transparent, transparency, index_of_refraction) { }
public Diffuse(ColorOrTexture diffuse, ColorOrTexture emission = null, ColorOrTexture ambient = null, ColorOrTexture reflective = null, FloatOrParam reflectivity = null, Transparent transparent = null, FloatOrParam transparency = null, FloatOrParam index_of_refraction = null) : base(emission, reflective, reflectivity, transparent, transparency, index_of_refraction) { this.ambient = ambient; this.diffuse = diffuse; }
public Base(ColorOrTexture emission = null, ColorOrTexture reflective = null, FloatOrParam reflectivity = null, Transparent transparent = null, FloatOrParam transparency = null, FloatOrParam index_of_refraction = null) { this.emission = emission; this.reflective = reflective; this.reflectivity = reflectivity; this.transparent = transparent; this.transparency = transparency; this.index_of_refraction = index_of_refraction; }
public Blinn(ColorOrTexture diffuse) : base(diffuse) { }
public Phong(ColorOrTexture diffuse) : base(diffuse) { }
public Lambert(ColorOrTexture diffuse) : base(diffuse) { }
public Constant(ColorOrTexture emission) : base(emission) { }
public Specular(ColorOrTexture diffuse) : base(diffuse) { }
public Diffuse(ColorOrTexture diffuse) { this.diffuse = diffuse; }
public Base(ColorOrTexture emission) { this.emission = emission; }