Package aspect.render

Examples of aspect.render.Light


        //setAmbientLight(new Color(0.2f, 0.2f, 0.2f));
        setAmbientLight(Color.BLACK);

        p = new Player(Vector3.zero());
        p.setWalkSpeed(50);
        Light l = new Light(Color.WHITE);
        l.directional = true;
        l.pos = new Vector3(0, 1, 0);

        l.setAttenuation(1.0f, 0.0f, 0.0f);

        crosshair = sprite(new Material(loadTexture(new File("materials/crosshair.png"))), 1, 1);

        int pow = 8;
View Full Code Here


        //floor.transform.set(new Vector3(0, -12, 0), Vector3.yAxis().negate(), Vector3.zAxis(), Vector3.one());
        floor.addBehavior(new Collider(fv, fn, fe));

        World.main.add(floor);

        Light light = new Light(Color.WHITE);
        light.transform.position = new Vector3(-5, 5, 2);
        light.setAttenuation(1, 0, 0);

        //player = new Player(new Vector3(0, 0, 4));
        //World.main.add(player);
        camera = new Transform(new Vector3(-10, 10, 10), new Vector3(1, -1, -1), Vector3.yAxis(), Vector3.one());
View Full Code Here

TOP

Related Classes of aspect.render.Light

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.