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; }
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); }
public override void deSerialize(IFile bs) { VertexTexCoord = bs.Read<int>(); Token = new bCGuid(bs); }
public eCColorSrcProxy(eCShaderBase P) { Version = 666; ColorComponent = eEShaderColorSrcComponent.eEShaderColorSrcComponent_Default; ColorModifier = eEShaderColorModifier.eEShaderColorModifier_Default; Token = new bCGuid(Guid.Empty, false); Parent = P; }
public eCTexCoordSrcProxy() { VertexTexCoord = 0; Token = new bCGuid(Guid.Empty, false); }
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>(); }
public eCShaderEllementBase(bCGuid G, bCRect r, eCShaderBase P) { Version = 2; Unknown = 0; Token = G; EditorLayout = r; p = P; }
public eCShaderEllementBase() { Version = 2; Unknown = 0; Token = new bCGuid(Guid.NewGuid()); EditorLayout = new bCRect(496, 264, 240, 168); }
public eCShaderEllementBase GetEllementByGuid(bCGuid G) { foreach (bCAccessorPropertyObject a in ShaderEllement) if ((a.Class as eCShaderEllementBase).Token == G) return a.Class as eCShaderEllementBase; return null; }