Package aspect.render

Examples of aspect.render.Material


        float[] texCoords = ellipseTexCoords(npoints);
        return new Mesh(POLYGON, vertices, copyVector3(Vector3.zAxis(), npoints), texCoords, texture);
    }

    public static ViewModel ellipse(Color color, float width, float height, int npoints) {
        return ellipse(new Material(color), width, height, npoints);
    }
View Full Code Here


        float[] texCoords = boxTexCoords(xRepeat, yRepeat, zRepeat);
        return new Mesh(QUADS, vertices, boxNormals(), texCoords, texture);
    }

    public static ViewModel box(Color color, float width, float height, float depth) {
        return box(new Material(color), width, height, depth);
    }
View Full Code Here

        float[] texCoords = polygonTexCoords(hRepeat, vRepeat, points);
        return new Mesh(POLYGON, vertices, copyVector3(Vector3.zAxis(), points.length), texCoords, texture);
    }

    public static ViewModel polygon(Color color, Vector3... points) {
        return polygon(new Material(color), points);
    }
View Full Code Here

    @Override
    public void onAdd() {
        setCulling(true);
        world = new ListWorld();
        System.out.println("OnAdd");
        m = new Material(loadTexture(new File("textures/tex.jpg")));
        m.setTextureFilter(Material.Filter.MIPMAP, Material.Filter.LINEAR);

        shader = ShaderProgram.COLOR;

        cube = new EditorBlock(shader, m, new Vector3(-5, -4, -10), new Vector3(5, -2, -5));
View Full Code Here

TOP

Related Classes of aspect.render.Material

Copyright © 2018 www.massapicom. 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.