public static void Register(FXRenderTexture texture) { var group = Groups.FirstOrDefault(g => g.Name == texture.GroupName); if (group == null) { group = new FXRenderTextureGroup(texture.GroupName); group.Priority = texture.Priority; Groups.Add(group); Groups = Groups.OrderBy(g => g.Name).ToList(); } if (!group.Textures.Contains(texture)) { group.Textures.Add(texture); } group.SetDirty(); PackTextures(); }
public FXRenderTextureData(FXRenderTextureGroup group) { this.Group = group; }