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; } }
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); } }