Examples of genTexture()


Examples of nu3a.material.texture.N3Texture2D.genTexture()

    InputStream is = new FileInputStream("files/nu3a.png");

    N3JDKImageLoader loader = new N3JDKImageLoader(is);
    N3Texture2D texture = new N3Texture2D(scene, "textura1");
    texture.genTexture(loader, render);
    material.addTexture(texture);
    material.setAmbientColor(new N3ColorRGBA(1, 1, 1));
    material.setDiffuseColor(new N3ColorRGBA(1, 1, 1));
    material.setSpecularColor(new N3ColorRGBA(0.2f, 0.2f, 0.2f), 0.5f);
    material.applyMaterial(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.