Package com.ardor3d.renderer.effect

Examples of com.ardor3d.renderer.effect.FrameBufferOutputEffect


                        "com/ardor3d/extension/effect/sepiatone.png")), Texture.MinificationFilter.Trilinear, true);
        final ColorReplaceEffect sepiaEffect = new ColorReplaceEffect(sepiaTexture);
        effectManager.addEffect(sepiaEffect);

        // Finally, add a step to draw the result to the framebuffer
        final FrameBufferOutputEffect out = new FrameBufferOutputEffect();
        final BlendState blend = new BlendState();
        blend.setBlendEnabled(true);
        blend.setSourceFunction(SourceFunction.SourceAlpha);
        blend.setDestinationFunction(DestinationFunction.OneMinusSourceAlpha);
        out.setBlend(blend);
        effectManager.addEffect(out);

        // setup effects
        effectManager.setupEffects();
View Full Code Here

TOP

Related Classes of com.ardor3d.renderer.effect.FrameBufferOutputEffect

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.