/*
 * Copyright (C) 2014-2016  Matthew Seal
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package org.mseal.moleculeViewer.assets;

import com.jme3.asset.AssetManager;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;

/**
 *
 * @author Matthew Seal
 */
public class Materials {

    public static Material atom_central, atom_terminal,
            bond_non, bond_atom;
    public static final String MATDEF_UNSHADED
            = "Common/MatDefs/Misc/Unshaded.j3md";
    public static final String MATDEF_LIGHTING
            = "Common/MatDefs/Light/Lighting.j3md";

    public static void init(AssetManager assetManager) {
        final String matdef = MATDEF_UNSHADED;
        final String color = "Color";
        atom_central = new Material(assetManager, matdef);
        atom_central.setColor(color, ColorRGBA.White);

        atom_terminal = new Material(assetManager, matdef);
        atom_terminal.setColor(color, ColorRGBA.Gray);

        bond_non = new Material(assetManager, matdef);
        bond_non.setColor(color, ColorRGBA.Yellow);

        bond_atom = new Material(assetManager, matdef);
        bond_atom.setColor(color, ColorRGBA.Orange);
    }
}
