Examples of calcCenterCamera()


Examples of se.llbit.chunky.renderer.scene.Scene.calcCenterCamera()

    Scene scene = new Scene();
    world.setDimension(0);
    scene.loadChunks(this, world, chunks);
    octree = scene.getOctree();
    origin.set(scene.calcCenterCamera());
    origin.sub(scene.getOrigin());
    int[] octreeData = octree.toDataBuffer();
    logger.info("octree size: " + (4 * octreeData.length) + " bytes");
    octreeBuffer = clCreateBuffer(context, CL_MEM_READ_ONLY,
        octreeData.length * Sizeof.cl_uint, null, null);
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.