Beispiel #1
0
 public eCColorSrcProxy(bCGuid G, eCShaderBase B,eEShaderColorSrcComponent comp = eEShaderColorSrcComponent.eEShaderColorSrcComponent_Default, eEShaderColorModifier mod = eEShaderColorModifier.eEShaderColorModifier_Default)
 {
     Version = 666;
     ColorComponent = comp;
     ColorModifier = mod;
     Token = G;
     Parent = B;
 }
Beispiel #2
0
 public override void deSerialize(IFile a_File)
 {
     Version = a_File.Read<int>();
     if (Version >= 666)
     {
         ColorComponent = (eEShaderColorSrcComponent)a_File.Read<int>();// eEShaderColorSrcComponent (0 = "", 1 = ".rgb", 2 = ".r", 3 = ".g", 4 = ".b", 5 = ".a")
         ColorModifier = (eEShaderColorModifier)a_File.Read<int>();// eEShaderColorModifier (0 = "", 1 = "-", 2 = "1-", 3 = "saturate", 4 = "ceil", 5 = "floor", 6 = "abs", 7 = "frac")
     }
     Token = new bCGuid(a_File);
 }
Beispiel #3
0
 public override void deSerialize(IFile bs)
 {
     VertexTexCoord = bs.Read<int>();
     Token = new bCGuid(bs);
 }
Beispiel #4
0
 public eCColorSrcProxy(eCShaderBase P)
 {
     Version = 666;
     ColorComponent = eEShaderColorSrcComponent.eEShaderColorSrcComponent_Default;
     ColorModifier = eEShaderColorModifier.eEShaderColorModifier_Default;
     Token = new bCGuid(Guid.Empty, false);
     Parent = P;
 }
Beispiel #5
0
 public eCTexCoordSrcProxy()
 {
     VertexTexCoord = 0;
     Token = new bCGuid(Guid.Empty, false);
 }
Beispiel #6
0
 public override void deSerialize(IFile s)
 {
     Version = s.Read<short>();
     Token = new bCGuid(s);
     EditorLayout = new bCRect(s);
     if (Version >= 2)
         Unknown = s.Read<byte>();
 }
Beispiel #7
0
 public eCShaderEllementBase(bCGuid G, bCRect r, eCShaderBase P)
 {
     Version = 2;
     Unknown = 0;
     Token = G;
     EditorLayout = r;
     p = P;
 }
Beispiel #8
0
 public eCShaderEllementBase()
 {
     Version = 2;
     Unknown = 0;
     Token = new bCGuid(Guid.NewGuid());
     EditorLayout = new bCRect(496, 264, 240, 168);
 }
Beispiel #9
0
 public eCShaderEllementBase GetEllementByGuid(bCGuid G)
 {
     foreach (bCAccessorPropertyObject a in ShaderEllement)
         if ((a.Class as eCShaderEllementBase).Token == G)
             return a.Class as eCShaderEllementBase;
     return null;
 }