Exemplo n.º 1
0
  public void blendMode(int src, int dest) {

    for (Material mat : modelInstance.materials) {

      BlendingAttribute ba = (BlendingAttribute) mat.get(BlendingAttribute.Type);
      ba.sourceFunction = src;
      ba.destFunction = dest;
    }
  }
Exemplo n.º 2
0
 public void colorNoChildren(float r, float g, float b, float a) {
   for (Material mat : modelInstance.materials) {
     ColorAttribute ca = (ColorAttribute) mat.get(ColorAttribute.Diffuse);
     ca.color.set(r, g, b, a);
   }
 }