Package codechicken.lib.lighting

Examples of codechicken.lib.lighting.LC


        public Vertex5[] verts = CCModel.quadModel(24).generateBlock(0, Cuboid6.full).verts;
        public LC[] lightCoords = new LC[24];

        public FullBlock() {
            for(int i = 0; i < 24; i++)
                lightCoords[i] = new LC().compute(verts[i].vec, i/4);
        }
View Full Code Here


     */
    public CCModel computeLightCoords() {
        LC[] lcs = getOrAllocate(CCRenderState.lightCoordAttrib);
        Vector3[] normals = normals();
        for(int i = 0; i < verts.length; i++)
            lcs[i] = new LC().compute(verts[i].vec, normals[i]);
        return this;
    }
View Full Code Here

        public Vertex5[] verts = CCModel.quadModel(24).generateBlock(0, Cuboid6.full).verts;
        public LC[] lightCoords = new LC[24];

        public FullBlock() {
            for(int i = 0; i < 24; i++)
                lightCoords[i] = new LC().compute(verts[i].vec, i/4);
        }
View Full Code Here

TOP

Related Classes of codechicken.lib.lighting.LC

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.