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); }