MinieExamples/src/main/java/jme3utilities/minie/test/common/AbstractDemo.java
/**
     * Initialize the library of named materials. Invoke during startup.
     */
Initialize the library of named materials. Invoke during startup.
Initialize the library of named materials . Invoke during startup .
public void generateMaterials() {
        ColorRGBA green = new ColorRGBA(0f, 0.12f, 0f, 1f);
        Material platform = MyAsset.createShadedMaterial(assetManager, green);
        registerMaterial("platform", platform);
        Texture texture = MyAsset.loadTexture(assetManager,
                "Textures/greenTile.png", true);
        texture.setMinFilter(Texture.MinFilter.Trilinear);
        texture.setWrap(Texture.WrapMode.Repeat);
        Material greenTile
                = MyAsset.createShadedMaterial(assetManager, texture);
        registerMaterial("greenTile", greenTile);
    }
public void generateMaterials ( ) { ColorRGBA green = new ColorRGBA ( 0f , 0.12f , 0f , 1f ) ; Material platform = MyAsset . createShadedMaterial ( assetManager , green ) ; registerMaterial ( "platform" , platform ) ; Texture texture = MyAsset . loadTexture ( assetManager , "Textures/greenTile.png" , true ) ; texture . setMinFilter ( Texture . MinFilter . Trilinear ) ; texture . setWrap ( Texture . WrapMode . Repeat ) ; Material greenTile = MyAsset . createShadedMaterial ( assetManager , texture ) ; registerMaterial ( "greenTile" , greenTile ) ; }
Initialize the library of named materials.
Initialize the library of named materials .