예제 #1
0
        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);
        }
예제 #2
0
 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)
 {
 }
예제 #3
0
 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)
 {
 }
예제 #4
0
 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)
 {
 }
예제 #5
0
 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;
 }
예제 #6
0
 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;
 }
예제 #7
0
 public Blinn(ColorOrTexture diffuse) : base(diffuse)
 {
 }
예제 #8
0
 public Phong(ColorOrTexture diffuse) : base(diffuse)
 {
 }
예제 #9
0
 public Lambert(ColorOrTexture diffuse) : base(diffuse)
 {
 }
예제 #10
0
 public Constant(ColorOrTexture emission) : base(emission)
 {
 }
예제 #11
0
 public Specular(ColorOrTexture diffuse) : base(diffuse)
 {
 }
예제 #12
0
 public Diffuse(ColorOrTexture diffuse)
 {
     this.diffuse = diffuse;
 }
예제 #13
0
 public Base(ColorOrTexture emission)
 {
     this.emission = emission;
 }