Package com.ardor3d.renderer.state

Examples of com.ardor3d.renderer.state.ClipState


        final Teapot teapot = new Teapot("teapot");
        teapot.setScale(5);
        _root.attachChild(teapot);

        // Add a clip state to the scene.
        final ClipState cs = new ClipState();
        cs.setEnableClipPlane(0, true);
        cs.setClipPlaneEquation(0, 1, 0, 0, 0);
        _root.setRenderState(cs);
    }
View Full Code Here


     * @param skyBox
     *            Handle to a node to use as skybox
     */
    public void setSkybox(final Node skyBox) {
        if (skyBox != null) {
            final ClipState skyboxClipState = new ClipState();
            skyboxClipState.setEnabled(false);
            skyBox.setRenderState(skyboxClipState);
        }

        this.skyBox = skyBox;
    }
View Full Code Here

        _light = light;
        _shadowMapSize = shadowMapSize;
        setNumOfSplits(numOfSplits);
        _pssmCam = new PSSMCamera();

        _noClip = new ClipState();
        _noClip.setEnabled(false);
        _noTexture = new TextureState();
        _noTexture.setEnabled(false);
        _colorDisabled = new ColorMaskState();
        _colorDisabled.setAll(false);
View Full Code Here

TOP

Related Classes of com.ardor3d.renderer.state.ClipState

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.