public void Load(BCRES bcres, Material material) { Material = material; BcresParent = bcres; Text = material.Name; if (material.TexCoordSources.Count > 0) { TexCoord1Buffer = new TexCoord1() { Translate = Utils.ToVec2(material.TexCoordSources[0].Translate), Rotate = material.TexCoordSources[0].Rotate, Scale = Utils.ToVec2(material.TexCoordSources[0].Scale), }; } int textureUnit = 1; if (material.TextureMapInfo1 != null) { Nodes.Add(CreateGenericMatTexture(textureUnit, bcres, material.TextureMapInfo1)); } if (material.TextureMapInfo2 != null) { Nodes.Add(CreateGenericMatTexture(textureUnit, bcres, material.TextureMapInfo2)); } if (material.TextureMapInfo3 != null) { Nodes.Add(CreateGenericMatTexture(textureUnit, bcres, material.TextureMapInfo3)); } }
public bool Equals(AnimatedTextureFrame other) { return(Texture == other.Texture && TexCoord0.Equals(other.TexCoord0) && TexCoord1.Equals(other.TexCoord1) && TexCoord2.Equals(other.TexCoord2) && TexCoord3.Equals(other.TexCoord3)); }