Package com.jme.math

Examples of com.jme.math.Plane


    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 1
        , false, true );
    //setting to default value just to show
    waterEffectRenderPass.setWaterPlane( new Plane( new Vector3f( 0.0f, 1.0f, 0.0f ), 0.0f ) );

    waterQuad = new Quad( "waterQuad", 1, 1 );
    FloatBuffer normBuf = waterQuad.getNormalBuffer( 0 );
    normBuf.clear();
    normBuf.put( 0 ).put( 1 ).put( 0 );
View Full Code Here


    rootNode.attachChild( reflectedNode );

    waterEffectRenderPass = new WaterRenderPass( cam, 4, false, true );
    //set equations to use z axis as up
    waterEffectRenderPass.setWaterPlane( new Plane( new Vector3f( 0.0f, 0.0f, 1.0f ), 0.0f ) );
    waterEffectRenderPass.setTangent( new Vector3f( 1.0f, 0.0f, 0.0f ) );
    waterEffectRenderPass.setBinormal( new Vector3f( 0.0f, 1.0f, 0.0f ) );

    waterQuad = new Quad( "waterQuad", 100, 100 );
View Full Code Here

TOP

Related Classes of com.jme.math.Plane

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.