public static void Bind(TexturePack p, int a, int b, int c, int d, int e) { Bind(p.Diffuse, a); Bind(p.Normal, b); Bind(p.Specular, c); Bind(p.Displacement, d); Bind(p.Occlusion, e); }
public Model(VAO vao, TexturePack textures) { Vao = vao; Textures = textures; Reflectivity = 1f; ShineDamper = 100f; models.Add(this); }
public static void Bind(TexturePack p) => Bind(p, 0);
public static void Bind(TexturePack p, int offset) => Bind(p, offset++, offset++, offset++, offset++, offset++);