Esempio n. 1
0
 public override void deSerialize(IFile bs)
 {
     Version = bs.Read<short>();
     Color = new eCColorSrcProxy(bs, Parent);
     base.deSerialize(bs);
 }
Esempio n. 2
0
 public override void deSerialize(IFile bs)
 {
     Version = bs.Read<short>();
     Height = new eCColorSrcProxy(bs, Parent);
     TexCoord = new eCTexCoordSrcProxy();
     TexCoord.deSerialize(bs);
     base.deSerialize(bs);
 }
Esempio n. 3
0
 public override void deSerialize(IFile bs)
 {
     Version = bs.Read<short>();
     ColorSrcClouds = new eCColorSrcProxy(bs, this);
     ColorSrcAbsorbation = new eCColorSrcProxy(bs, this);
     base.deSerialize(bs);
 }
Esempio n. 4
0
 public override void deSerialize(IFile bs)
 {
     Version = bs.Read<short>();
     ColorSrcDiffuse = new eCColorSrcProxy(bs, this);
     base.deSerialize(bs);
 }
Esempio n. 5
0
 public override void deSerialize(IFile bs)
 {
     Version = bs.Read<short>();
     ColorSrcDiffuse = new eCColorSrcProxy(bs, this);
     ColorSrcOpacity = new eCColorSrcProxy(bs, this);
     ColorSrcSelfIllumination = new eCColorSrcProxy(bs, this);
     ColorSrcSpecular = new eCColorSrcProxy(bs, this);
     ColorSrcSpecularPower = new eCColorSrcProxy(bs, this);
     ColorSrcNormal = new eCColorSrcProxy(bs, this);
     if (Version >= 2)
         ColorSrcDistortion = new eCColorSrcProxy(bs, this);
     else ColorSrcDistortion = new eCColorSrcProxy(new bCGuid(), this);
     if (Version >= 3)
         ColorSrcLightEmission = new eCColorSrcProxy(bs, this);
     else ColorSrcLightEmission = new eCColorSrcProxy(new bCGuid(), this);
     base.deSerialize(bs);
 }
Esempio n. 6
0
 public eCShaderDefault(GenericSampler a_Diffuse, GenericSampler a_Opacity, GenericSampler a_Specular, GenericSampler a_SpecularPower)
     : base(1)
 {
     Version = 5;
     ColorSrcDiffuse = ColorSrcOpacity = ColorSrcSelfIllumination = ColorSrcSpecular = ColorSrcSpecularPower = ColorSrcNormal = ColorSrcDistortion = ColorSrcLightEmission = new eCColorSrcProxy(this);
     List<bCAccessorPropertyObject> B = new List<bCAccessorPropertyObject>();
     Func<GenericSampler, eCColorSrcProxy> A = (x) =>
     {
         if (x.IsValid)
         {
             bCAccessorPropertyObject b = x.CreateSampler();
             B.Add(b);
             return new eCColorSrcProxy((b.Class as eCShaderEllementBase).Token, this);
         }
         else return new eCColorSrcProxy(this);
     };
     ColorSrcDiffuse = A(a_Diffuse);
     ColorSrcOpacity = A(a_Opacity);
     ColorSrcSpecular = A(a_Specular);
     ColorSrcSpecularPower = A(a_SpecularPower);
     ShaderEllement = B.ToArray();
 }