Пример #1
0
 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);
 }
Пример #2
0
 public Model(VAO vao, TexturePack textures)
 {
     Vao          = vao;
     Textures     = textures;
     Reflectivity = 1f;
     ShineDamper  = 100f;
     models.Add(this);
 }
Пример #3
0
 public static void Bind(TexturePack p) => Bind(p, 0);
Пример #4
0
 public static void Bind(TexturePack p, int offset) => Bind(p, offset++, offset++, offset++, offset++, offset++);