public TexCoordGen(EndianBinaryReader reader) { Type = (TexGenType)reader.ReadByte(); Source = (TexGenSrc)reader.ReadByte(); TexMatrixSource = (Enums.TexMatrix)reader.ReadByte(); reader.SkipByte(); }
public void AddTexGen(TexGenType genType, TexGenSrc genSrc, Enums.TexMatrix mtrx) { TexCoordGen newGen = new TexCoordGen(genType, genSrc, mtrx); for (int i = 0; i < 8; i++) { if (TexCoord1Gens[i] == null) { TexCoord1Gens[i] = newGen; break; } if (i == 7) { throw new Exception($"TexGen array for material \"{ Name }\" is full!"); } } NumTexGensCount++; }
public TexCoordGen(TexGenType type, TexGenSrc src, Enums.TexMatrix mtrx) { Type = type; Source = src; TexMatrixSource = mtrx; }